/* website/assets/css/auth.css — halaman login Nova */

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background:
    radial-gradient(900px 460px at 50% -140px, rgba(245, 166, 35, .18), transparent 62%),
    radial-gradient(700px 400px at 88% 100%, rgba(42, 63, 143, .14), transparent 60%),
    var(--bg-base);
}

.auth-wrap { width: 100%; max-width: 430px }

.auth-brand {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-bottom: 26px;
}
.auth-brand .maxy-mark { width: 44px; height: 44px; border-radius: 12px }
.auth-brand-text strong {
  display: block; font-size: 20px; font-weight: 800;
  letter-spacing: -.035em; color: var(--maxy-navy-dark); line-height: 1.1;
  white-space: nowrap;
}
/* Direct child — supaya .brand-accent di dalam <strong> tidak ikut terkena. */
.auth-brand-text > span {
  display: block; margin-top: 3px;
  font-size: 9.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--maxy-orange-dark);
  white-space: nowrap;
}

.auth-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 34px 30px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.auth-card h1 {
  font-size: 23px; font-weight: 800; letter-spacing: -.03em;
  color: var(--maxy-navy-dark); margin-bottom: 10px;
}
.auth-card > p {
  font-size: 14px; line-height: 1.65; color: var(--text-secondary);
  max-width: 330px; margin: 0 auto;
}

.auth-google { margin-top: 26px; display: flex; justify-content: center; min-height: 44px }

.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 24px 0 18px; color: var(--text-tertiary); font-size: 11px;
  text-transform: uppercase; letter-spacing: .1em; font-weight: 700;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

.auth-points { text-align: left; display: grid; gap: 11px }
.auth-point {
  display: flex; gap: 11px; align-items: flex-start;
  font-size: 13px; line-height: 1.55; color: var(--text-secondary);
}
.auth-point i { color: var(--success); font-size: 17px; flex-shrink: 0; margin-top: 1px }

.auth-note {
  margin-top: 22px; padding: 13px 15px;
  border-radius: var(--radius); font-size: 12px; line-height: 1.6;
  text-align: left;
}
.auth-note--pair {
  background: var(--maxy-navy-pale);
  border: 1px solid rgba(42, 63, 143, .18);
  color: var(--maxy-navy);
}
.auth-note--warn {
  background: var(--warning-bg);
  border: 1px solid rgba(217, 119, 6, .25);
  color: #8A5A00;
}
.auth-note--error {
  background: var(--error-bg);
  border: 1px solid rgba(220, 38, 38, .25);
  color: #A31515;
}
.auth-note b { display: block; margin-bottom: 4px }
.auth-note code {
  font-family: var(--mono); font-size: 11px;
  background: rgba(255, 255, 255, .7); padding: 1px 5px; border-radius: 4px;
}
.auth-note ol { margin: 8px 0 0 18px; display: grid; gap: 5px }

.auth-success {
  display: grid; gap: 14px; justify-items: center;
  padding: 8px 0 4px;
}
.auth-success .tick {
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; font-size: 30px;
  background: var(--success-bg); color: var(--success);
}
.auth-success strong { font-size: 17px; color: var(--maxy-navy-dark) }
.auth-success p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.6 }

.auth-foot {
  margin-top: 22px; text-align: center;
  font-size: 12px; color: var(--text-tertiary);
}
.auth-foot a { color: var(--maxy-navy); font-weight: 600 }
.auth-foot a:hover { color: var(--maxy-orange-dark) }

.spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid var(--border);
  border-top-color: var(--maxy-orange);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg) } }

/* ══════════════════════════════════════════════════════════════
   FORM MASUK / DAFTAR
   ══════════════════════════════════════════════════════════════ */
.auth-seg {
  display: flex; gap: 4px; padding: 4px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-pill); margin-bottom: 24px;
}
.auth-seg button {
  flex: 1; border: none; background: none; cursor: pointer;
  padding: 9px 16px; border-radius: var(--radius-pill);
  font-size: 13.5px; font-weight: 650; color: var(--text-secondary);
  transition: all .2s var(--ease);
}
.auth-seg button.active {
  background: var(--maxy-navy); color: #fff;
  box-shadow: 0 4px 12px rgba(26, 43, 107, .26);
}

.auth-form { margin-top: 24px; text-align: left }

.auth-form .field { margin-bottom: 14px }
.auth-form label {
  display: block; margin-bottom: 6px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--text-tertiary);
}
.auth-form input {
  width: 100%; padding: 12px 14px;
  background: var(--bg-input); border: 1px solid var(--border-light);
  border-radius: var(--radius); font-size: 14px; color: var(--text-primary);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.auth-form input::placeholder { color: var(--text-tertiary) }
.auth-form input:focus {
  outline: none; border-color: var(--maxy-orange);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.field-pass { position: relative }
.field-pass input { padding-right: 44px }
.field-pass button {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border: none; background: none; cursor: pointer;
  color: var(--text-tertiary); font-size: 17px;
  display: grid; place-items: center; border-radius: var(--radius-sm);
}
.field-pass button:hover { color: var(--maxy-navy); background: var(--bg-hover) }

.field-hint { display: block; margin-top: 6px; font-size: 11.5px; color: var(--text-tertiary) }

.auth-submit {
  width: 100%; margin-top: 6px; padding: 13px 24px;
  border: none; border-radius: var(--radius-pill); cursor: pointer;
  background: linear-gradient(135deg, var(--maxy-orange-light), var(--maxy-orange) 55%, var(--maxy-orange-dark));
  color: #2A1B00; font-size: 14.5px; font-weight: 700;
  box-shadow: var(--shadow-orange);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.auth-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(245, 166, 35, .42) }
.auth-submit:disabled { opacity: .6; cursor: not-allowed }

.auth-switch {
  margin-top: 20px; font-size: 13px; color: var(--text-secondary);
}
.auth-switch a { color: var(--maxy-navy); font-weight: 700; margin-left: 4px }
.auth-switch a:hover { color: var(--maxy-orange-dark) }
