/* Auth pages — shared styling (login, forgot password, setup password)
   Palet: Cyan #0ea5e9 / Teal #10b981 / Charcoal #1e293b — selaras logo GNT */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  margin: 0;
}
button { -webkit-appearance: none; appearance: none; }
input { -webkit-appearance: none; appearance: none; border-radius: 0; }

body.auth-page {
  margin: 0;
  padding: 2rem 1rem;
  font-family: 'Plus Jakarta Sans', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #0f172a;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(14,165,233,0.4) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(16,185,129,0.35) 0%, transparent 70%),
    linear-gradient(135deg, #0c4a6e 0%, #0369a1 50%, #0ea5e9 100%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  position: relative;
}

body.auth-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}

.login-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  animation: authFadeUp .5s ease both;
}

@keyframes authFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.brand-top { text-align: center; margin-bottom: 1.75rem; }

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: #fff;
  box-shadow:
    0 12px 32px rgba(0,0,0,0.16),
    0 0 0 4px rgba(14,165,233,0.2),
    inset 0 -2px 0 rgba(0,0,0,0.04);
  padding: 6px;
  margin-bottom: 1rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.brand-top:hover .brand-logo {
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 16px 40px rgba(0,0,0,0.2),
    0 0 0 4px rgba(14,165,233,0.3),
    inset 0 -2px 0 rgba(0,0,0,0.04);
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #fff;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.brand-tagline {
  font-size: .78rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  margin: .25rem 0 0;
  letter-spacing: .02em;
}

.login-card {
  background: rgba(255,255,255,0.97);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 20px;
  padding: 2.25rem 2rem;
  box-shadow:
    0 1px 3px rgba(0,0,0,0.04),
    0 24px 60px rgba(12,74,110,0.2),
    0 8px 16px rgba(12,74,110,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.login-title {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #0f172a;
  margin: 0 0 .35rem;
  text-align: center;
}
.login-subtitle {
  font-size: .85rem;
  color: #64748b;
  font-weight: 500;
  margin: 0 0 1.75rem;
  text-align: center;
}

.alert-box {
  padding: .7rem .95rem;
  border-radius: 10px;
  font-size: .8rem;
  font-weight: 500;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .55rem;
}
.alert-success-div .alert-box {
  background: rgba(16,185,129,0.08);
  color: #047857;
  border: 1px solid rgba(16,185,129,0.22);
}
.alert-error-div .alert-box {
  background: rgba(239,68,68,0.06);
  color: #b91c1c;
  border: 1px solid rgba(239,68,68,0.2);
}

.form-field { margin-bottom: 1rem; }
.form-label {
  display: block;
  font-size: .76rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: .4rem;
  letter-spacing: -.005em;
}

.input-wrap { position: relative; }
.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: .9rem;
  pointer-events: none;
  transition: color .15s;
}
.form-input {
  width: 100%;
  height: 46px;
  padding: 0 14px 0 42px;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 500;
  color: #0f172a;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.form-input.no-icon { padding-left: 14px; }
.form-input::placeholder { color: #94a3b8; font-weight: 400; }
.form-input:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 4px rgba(14,165,233,0.15);
}
.input-wrap:focus-within .input-icon { color: #0ea5e9; }

.toggle-pass {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  font-size: .9rem;
}
.toggle-pass:hover { color: #0ea5e9; }

.form-extras {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  font-size: .8rem;
}
.remember {
  display: flex;
  align-items: center;
  gap: .45rem;
  color: #475569;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}
.remember input { accent-color: #10b981; }
.forgot, .auth-link {
  color: #0ea5e9;
  text-decoration: none;
  font-weight: 600;
}
.forgot:hover, .auth-link:hover { color: #0284c7; text-decoration: underline; }

.btn-login, .btn-auth {
  width: 100%;
  height: 46px;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: -.005em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(14,165,233,0.30);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.btn-login:hover, .btn-auth:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(14,165,233,0.40);
}
.btn-login:active, .btn-auth:active { transform: translateY(0); }
.btn-login:disabled, .btn-auth:disabled { opacity: .7; cursor: not-allowed; }

.btn-auth-secondary {
  width: 100%;
  height: 46px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  margin-top: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-auth-secondary:hover { background: #e2e8f0; }

.auth-actions { display: flex; flex-direction: column; gap: 0; }

.login-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: .75rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}
.login-footer .dot { margin: 0 .5rem; opacity: .5; }

.auth-back {
  text-align: center;
  margin-top: 1.25rem;
}
.auth-back a {
  color: rgba(255,255,255,0.85);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
}
.auth-back a:hover { color: #fff; text-decoration: underline; }
