:root {
  --bg: #f6f7fb;
  --panel: #ffffff;
  --border: #e3e6ee;
  --text: #1a1f2e;
  --muted: #6b7280;
  --accent: #4f46e5;
  --danger: #b42318;
  --danger-soft: #fef3f2;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.auth-shell {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: linear-gradient(180deg, #eef2ff 0, var(--bg) 42%);
}
.auth-panel {
  width: min(400px, 100%); background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 30px; box-shadow: 0 18px 48px rgba(26, 31, 46, .1);
}
.auth-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 30px; }
.auth-logo {
  width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; font-size: 17px; font-weight: 750;
}
.auth-product { font-size: 15px; font-weight: 700; line-height: 1.25; }
.auth-company { color: var(--muted); font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; }
.auth-heading h1 { margin: 0; font-size: 22px; line-height: 1.25; }
.auth-heading p { margin: 7px 0 0; color: var(--muted); }
.auth-error {
  margin-top: 18px; padding: 10px 12px; border-radius: 8px;
  border: 1px solid #fecdca; background: var(--danger-soft); color: var(--danger); font-size: 13px;
}
.auth-form { display: grid; gap: 8px; margin-top: 22px; }
.auth-form label { margin-top: 6px; color: var(--muted); font-size: 12px; font-weight: 650; }
.auth-form input {
  width: 100%; min-height: 44px; border: 1px solid var(--border); border-radius: 8px;
  background: #fff; color: var(--text); padding: 10px 12px; font: inherit; outline: none;
}
.auth-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79, 70, 229, .12); }
.password-field { position: relative; }
.password-field input { padding-right: 86px; }
.password-field button {
  position: absolute; right: 6px; top: 6px; height: 32px; border: 0; background: transparent;
  color: var(--accent); font: inherit; font-size: 12px; font-weight: 650; cursor: pointer;
}
.auth-submit {
  min-height: 44px; margin-top: 14px; border: 1px solid var(--accent); border-radius: 8px;
  background: var(--accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer;
}
.auth-submit:hover { filter: brightness(1.08); }
.auth-submit:focus-visible { outline: 3px solid rgba(79, 70, 229, .2); outline-offset: 2px; }

@media (max-width: 480px) {
  .auth-shell { place-items: start center; padding: 18px; }
  .auth-panel { margin-top: 8vh; padding: 24px 20px; }
}
