/* Ashario Pets · Instacart Inventory login — dark theme, cyan accent.
   Token set ported from Company-Assets-Dashboard so the whole stack
   shares one look. */

:root {
  color-scheme: dark;

  --bg: #000000;
  --bg-elev: #1c1c1e;
  --bg-card: #1c1c1e;
  --bg-input: #2c2c2e;
  --border: #38383b;
  --text: #f5f5f7;
  --text-body: #f5f5f7;
  --text-dim: #98989d;
  --accent: #02b3f1;
  --accent-hover: #2ad0ff;
  --accent-soft: rgba(2, 179, 241, 0.16);
  --navy: #02b3f1;
  --danger: #ff6b6b;
  --danger-soft: rgba(185, 28, 28, 0.20);
  --radius-sm: 8px;
  --radius-lg: 14px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", "Segoe UI", Roboto, Inter, sans-serif;
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-body);
  display: grid;
  place-items: center;
  padding: 24px;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(ellipse at top, rgba(2, 179, 241, 0.10), transparent 60%);
}

.login-shell { width: 100%; max-width: 400px; }

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
}

.login-brand {
  text-align: center;
  margin-bottom: 32px;
}
.brand-logo {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  margin: 0 auto 16px;
  border-radius: 12px;
  padding: 6px;
  background: #fff;
  overflow: hidden;
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.login-brand h1 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--accent);
}
.login-brand p {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 6px;
}

form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}
.field input {
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-body);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.btn-primary {
  margin-top: 8px;
  padding: 13px;
  background: var(--accent);
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 40px;
  cursor: pointer;
  font-size: 14px;
  display: grid;
  place-items: center;
  font-family: inherit;
  transition: background 0.2s;
  letter-spacing: 0.01em;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; }

.btn-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error {
  background: var(--danger-soft);
  border: 1px solid rgba(210, 4, 4, 0.25);
  color: var(--danger);
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.login-footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-dim);
}
.confidential {
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 10px;
}
