/* =====================================================
   ACEH EXECUTIVE DASHBOARD — LOGIN / REGISTER CSS
   ===================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg-start: #0a0f1e;
  --bg-end: #030614;
  --surface: #12182b;
  --surface2: #1a2338;
  --border: #2c3a5a;
  --border-glow: #3e5270;
  --text: #f0f4fe;
  --text-muted: #a9c1e0;
  --text-dim: #6a7f9f;
  --blue: #60a5fa;
  --indigo: #818cf8;
  --green: #4ade80;
  --red: #f87171;
  --yellow: #facc15;
  --radius: 20px;
}

body {
  font-family: 'Inter', sans-serif;
  background: radial-gradient(ellipse at 15% 25%, #0d1a2f, #030614 60%),
              radial-gradient(ellipse at 85% 75%, #0a1628, #030614 60%);
  background-color: #030614;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: var(--text);
  position: relative;
  overflow-x: hidden;
}

/* ── Animated background dots ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 30%, rgba(96,165,250,0.04) 0%, transparent 50%),
    radial-gradient(circle at 75% 70%, rgba(129,140,248,0.04) 0%, transparent 50%);
  pointer-events: none;
}

/* ── Floating grid lines ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(44,58,90,0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44,58,90,0.15) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.3) 0%, transparent 70%);
}

/* ── Auth Container ── */
.auth-container {
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
}

/* ── Auth Card ── */
.auth-card {
  background: rgba(18, 24, 43, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow:
    0 0 0 1px rgba(96,165,250,0.04),
    0 20px 60px rgba(0,0,0,0.5),
    0 0 100px rgba(96,165,250,0.03);
  animation: card-in 0.4s ease;
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Logo / Header ── */
.auth-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}
.auth-logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(145deg, var(--blue), var(--indigo));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 8px 24px rgba(96,165,250,0.3);
  flex-shrink: 0;
}
.auth-logo-text { line-height: 1.2; }
.auth-logo-title {
  font-weight: 800;
  font-size: 1.0rem;
  background: linear-gradient(135deg, #fff 40%, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.auth-logo-sub {
  font-size: 0.62rem;
  color: var(--text-dim);
  margin-top: 2px;
  letter-spacing: 0.04em;
}

/* ── Auth Title ── */
.auth-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 6px; }
.auth-desc { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 28px; }

/* ── Form Groups ── */
.form-group {
  margin-bottom: 18px;
}
.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.form-input-wrap {
  position: relative;
}
.form-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  pointer-events: none;
  opacity: 0.5;
}
.form-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  background: rgba(26, 35, 56, 0.7);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  font-size: 0.87rem;
  outline: none;
  transition: all 0.2s ease;
}
.form-input::placeholder { color: var(--text-dim); }
.form-input:focus {
  border-color: var(--blue);
  background: rgba(26, 35, 56, 0.9);
  box-shadow: 0 0 0 4px rgba(96,165,250,0.1);
}
.form-input.is-invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(248,113,113,0.1);
}
.invalid-msg {
  font-size: 0.73rem;
  color: var(--red);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Remember / Forgot ── */
.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.form-check input[type="checkbox"] {
  width: 16px; height: 16px;
  border-radius: 5px; cursor: pointer;
  accent-color: var(--blue);
}
.form-check-label { font-size: 0.78rem; color: var(--text-muted); }
.auth-link {
  font-size: 0.78rem;
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.auth-link:hover { color: #93c5fd; text-decoration: underline; }

/* ── Submit Button ── */
.btn-auth {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 8px 20px rgba(96,165,250,0.25);
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}
.btn-auth::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn-auth:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(96,165,250,0.35); }
.btn-auth:hover::after { opacity: 1; }
.btn-auth:active { transform: translateY(0); }

/* ── Divider ── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.auth-divider span { font-size: 0.7rem; color: var(--text-dim); white-space: nowrap; }

/* ── Register link ── */
.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.auth-footer a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.auth-footer a:hover { color: #93c5fd; }

/* ── Alert Errors ── */
.auth-alert {
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.25);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 0.78rem;
  color: var(--red);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.auth-alert-success {
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.25);
  color: var(--green);
}

/* ── Password strength (register) ── */
.password-strength {
  margin-top: 8px;
  display: flex;
  gap: 4px;
}
.strength-bar {
  flex: 1; height: 4px; border-radius: 4px; background: var(--border);
  transition: background 0.3s;
}
.strength-bar.filled-weak   { background: var(--red); }
.strength-bar.filled-medium { background: var(--yellow); }
.strength-bar.filled-strong { background: var(--green); }
.strength-label { font-size: 0.68rem; color: var(--text-dim); margin-top: 5px; text-align: right; }

/* ── Info card below auth ── */
.auth-info {
  margin-top: 24px;
  background: rgba(96,165,250,0.05);
  border: 1px solid rgba(96,165,250,0.12);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 0.73rem;
  color: var(--text-dim);
  line-height: 1.6;
}
.auth-info strong { color: var(--text-muted); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-thumb { background: var(--border-glow); border-radius: 10px; }
