@charset "UTF-8";

/* Signed-out pages: login, two-factor, password reset.
   The app's own style.css is not loaded here — these pages stand alone. */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --accent:      #ffc240;
  --accent-dark: #e6a800;
  --radius:      5px;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

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

/* Logo block */
.login-logo {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  border: 1px solid #222;
  border-radius: var(--radius);
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
}

.login-logo-box img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.login-logo-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.login-logo-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 3px;
}

/* Card */
.login-card {
  background: #111111;
  border: 1px solid #222222;
  border-radius: var(--radius);
  padding: 32px 36px 36px;
}

.login-card h1 {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  letter-spacing: -0.4px;
}

.login-card p.subtitle {
  font-size: 13.5px;
  color: #6b7280;
  margin-bottom: 26px;
  line-height: 1.5;
}

/* Alerts */
.alert-error {
  background: rgba(229,62,62,0.1);
  border: 1px solid rgba(229,62,62,0.25);
  border-left: 3px solid #e53e3e;
  border-radius: var(--radius);
  padding: 11px 14px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #fc8181;
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-error::before {
  content: '⚠';
  font-size: 13px;
  flex-shrink: 0;
}

.alert-success {
  background: rgba(72,187,120,0.08);
  border: 1px solid rgba(72,187,120,0.25);
  border-left: 3px solid #48bb78;
  border-radius: var(--radius);
  padding: 11px 14px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #9ae6b4;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.alert-success::before {
  content: '✓';
  font-size: 13px;
  flex-shrink: 0;
  line-height: 1.45;
}

/* Form */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: #9ca3af;
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

.form-input {
  width: 100%;
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  border-radius: var(--radius);
  padding: 11px 13px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: #ffffff;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  -webkit-appearance: none;
}

.form-input::placeholder {
  color: #3a3a3a;
}

.form-input:focus {
  border-color: rgba(255,255,255,0.4);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.06);
}

.form-input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 100px #0a0a0a inset;
  -webkit-text-fill-color: #ffffff;
}

.form-hint {
  font-size: 11.5px;
  color: #4b5563;
  margin-top: 6px;
  line-height: 1.45;
}

/* Password wrapper */
.input-wrapper {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #4b5563;
  font-size: 14px;
  padding: 2px 4px;
  line-height: 1;
  transition: color 0.15s;
}

.toggle-password:hover {
  color: #9ca3af;
}

/* Submit button — white, hover to black */
.btn-login {
  width: 100%;
  background: #ffffff;
  border: 1px solid #ffffff;
  border-radius: var(--radius);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: #000000;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  margin-top: 8px;
  letter-spacing: -0.1px;
}

.btn-login:hover {
  background: #000000;
  color: #ffffff;
  border-color: #333333;
}

.btn-login:active {
  opacity: 0.9;
}

/* Secondary links under the card body */
.login-link {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.15s;
}

.login-link:hover {
  color: #9ca3af;
}

.forgot-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -8px;
  margin-bottom: 16px;
}

.forgot-row a {
  font-size: 12px;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.15s;
}

.forgot-row a:hover {
  color: var(--accent);
}

/* Footer */
.login-footer {
  text-align: center;
  margin-top: 22px;
  font-size: 11.5px;
  color: #2a2a2a;
}

@media (max-width: 480px) {
  .login-card {
    padding: 24px 20px 28px;
  }
}

/* ── Passkey sign-in ────────────────────────────────────────────────────── */
/* Face ID is the fast path on a phone, but the password has to stay: a new
   device has no passkey yet, and that is exactly when you need to get in. */

.login-or {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 14px;
    color: #9aa0aa;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.login-or::before,
.login-or::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,.14);
}

.btn-login-alt {
    background: transparent;
    border: 1px solid rgba(255,255,255,.22);
    color: #fff;
}

.btn-login-alt:hover:not(:disabled) {
    border-color: rgba(255,255,255,.45);
}

.btn-login-alt:disabled {
    opacity: .6;
    cursor: default;
}

.login-hint {
    margin: 10px 0 0;
    font-size: 12px;
    color: #e2a0a0;
    text-align: center;
}
