/* ================== AUTH PAGES ================== */
.auth-page {
  min-height: calc(100vh - 70px); background: var(--color-bg);
  background-image:
    radial-gradient(circle at 20% 30%, var(--auth-overlay-1) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, var(--auth-overlay-2) 0%, transparent 40%);
  padding: 50px 20px; display: flex; align-items: center; justify-content: center;
}
.auth-container { width: 100%; max-width: 480px; }
.auth-card {
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.auth-header {
  background: var(--gradient-header); color: #fff;
  padding: 40px 30px 50px; text-align: center;
  position: relative; overflow: hidden;
}
.auth-header::before {
  content: ''; position: absolute; top: -30%; right: -20%;
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.30) 0%, transparent 70%);
  pointer-events: none;
}
.auth-header::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 30px;
  background: var(--color-card);
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 50%);
}
.auth-header > * { position: relative; z-index: 2; }
.auth-header .icon {
  width: 64px; height: 64px; margin: 0 auto 14px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 28px; backdrop-filter: blur(10px);
}
.auth-header h1 { color: #fff; font-size: 24px; margin-bottom: 6px; letter-spacing: -0.3px; }
.auth-header p { color: rgba(255, 255, 255, 0.85); font-size: 13px; }

.auth-body { padding: 30px; }
.auth-footer {
  text-align: center; padding: 18px 24px;
  background: var(--color-bg-section); font-size: 13px;
  color: var(--color-text-secondary);
  border-top: 1px solid var(--color-border);
}
.auth-footer a { font-weight: 600; color: var(--color-accent); }
.auth-footer a:hover { color: var(--color-accent-hover); }

.password-wrap { position: relative; }
.password-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--color-text-secondary); font-size: 14px;
  padding: 4px; transition: var(--transition);
}
.password-toggle:hover { color: var(--color-primary); }

/* Submit primary di halaman auth → orange untuk visibilitas */
.auth-body .btn-primary {
  background: var(--color-accent);
  box-shadow: 0 4px 14px rgba(255, 106, 0, 0.30);
}
.auth-body .btn-primary:hover:not(:disabled) {
  background: var(--color-accent-hover);
  box-shadow: 0 6px 20px rgba(255, 106, 0, 0.40);
}

/* ============== INFO KELAS BANNER (halaman registrasi) ============== */
.class-info-banner {
  background: var(--color-bg-section);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 22px;
}
.class-info-banner h4 {
  font-size: 13px; color: var(--color-primary);
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 6px;
}
.class-info-list {
  display: grid; grid-template-columns: 1fr; gap: 10px;
}
.class-info-item {
  background: var(--color-card);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  position: relative;
  transition: var(--transition);
}
.class-info-item:hover {
  border-color: var(--color-primary);
  transform: translateX(2px);
}
.class-info-item.recommended {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
}
[data-theme="dark"] .class-info-item.recommended { background: var(--color-card); }

.class-info-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 6px;
}
.class-info-mascot { font-size: 22px; }
.class-info-head strong {
  color: var(--color-text-heading); font-size: 14px;
}
.class-info-badge {
  background: var(--color-accent); color: #fff;
  padding: 2px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.5px;
}
.class-info-body {
  display: flex; flex-direction: column; gap: 3px;
  font-size: 12px; color: var(--color-text-secondary);
  padding-left: 30px;
}
.class-info-body strong { color: var(--color-accent); }

/* ============== STEPPER (Multi-step Form) ============== */
.stepper {
  display: flex; align-items: center; justify-content: space-between;
  gap: 4px; margin-bottom: 28px; padding: 0 4px;
  position: relative;
}
.stepper::before {
  content: ''; position: absolute;
  top: 16px; left: 8%; right: 8%; height: 2px;
  background: var(--color-border); z-index: 0;
}
.step {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; flex: 1; min-width: 0;
  cursor: default;
}
.step-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--color-card); color: var(--color-text-secondary);
  border: 2px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
  transition: all .25s ease;
}
.step-label {
  font-size: 11px; font-weight: 600;
  color: var(--color-text-secondary);
  text-align: center; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  max-width: 100%;
}
.step.active .step-num {
  background: var(--color-primary); color: white;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
  transform: scale(1.1);
}
.step.active .step-label {
  color: var(--color-primary); font-weight: 700;
}
.step.completed .step-num {
  background: var(--color-success); color: white;
  border-color: var(--color-success);
}
.step.completed .step-num::before {
  content: '✓'; font-size: 14px;
}
.step.completed .step-num span,
.step.completed .step-num { font-size: 0; }
.step.completed .step-num::before { font-size: 14px; }
.step.completed .step-label { color: var(--color-success); }

/* Form steps */
.form-step { display: none; animation: fadeIn .25s ease; }
.form-step.active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-section-title {
  font-size: 14px; color: var(--color-primary);
  margin: 0 0 14px; font-weight: 700;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--color-border);
}

.form-grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.form-helper {
  margin: 6px 0 0; font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}
.password-wrap { position: relative; }
.password-wrap input { padding-right: 44px; }
.password-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: transparent; border: none;
  width: 32px; height: 32px;
  cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.password-toggle:hover { background: var(--color-bg-section); }

.form-nav {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 24px; padding-top: 20px;
  border-top: 1.5px solid var(--color-border);
}
.form-nav .btn-prev,
.form-nav #btn-prev { margin-right: auto; }
.form-nav #btn-next,
.form-nav #btn-submit { margin-left: auto; }

@media (max-width: 480px) {
  .auth-page { padding: 20px 12px; }
  .auth-body { padding: 24px 20px; }
  .auth-header { padding: 32px 20px 42px; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .stepper { gap: 2px; }
  .step-label { font-size: 10px; }
  .step-num { width: 28px; height: 28px; font-size: 12px; }
  .stepper::before { top: 14px; }
}

/* ============ Lupa Password (multi-step) ============ */
.fp-step { display: none; animation: fp-fade .35s ease; }
.fp-step.active { display: block; }
@keyframes fp-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.auth-forgot { text-align: center; margin-top: 16px; }
.auth-forgot a { font-size: 13px; font-weight: 600; color: var(--color-accent); }
.auth-forgot a:hover { color: var(--color-accent-hover); text-decoration: underline; }
