/* ============================================================
   Auth pages — Glass-Liquid Morphism  v2
   ============================================================ */

/* ── Login page ──────────────────────────────────────────── */
.auth-page {
  padding: 4rem 0 5rem; min-height: 80vh;
  display: flex; align-items: center;
}
.auth-container { display: flex; justify-content: center; width: 100%; }

.auth-card {
  width: 100%; max-width: 460px;
  background: rgba(255,255,255,.42);
  backdrop-filter: blur(36px) saturate(2.1) brightness(1.05);
  -webkit-backdrop-filter: blur(36px) saturate(2.1) brightness(1.05);
  border: 1px solid rgba(255,255,255,.68);
  border-radius: var(--radius); padding: 2.5rem 2rem;
  box-shadow: 0 12px 48px rgba(0,0,0,.1), inset 0 1px 0 rgba(255,255,255,.85);
  animation: cardIn .3s var(--spring);
  position: relative; overflow: hidden;
}
.auth-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 45%;
  background: linear-gradient(180deg, rgba(255,255,255,.28) 0%, transparent 100%);
  pointer-events: none;
}
[data-theme="dark"] .auth-card {
  background: rgba(8,14,32,.62);
  border-color: rgba(255,255,255,.1);
  box-shadow: 0 12px 48px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06);
}
[data-theme="dark"] .auth-card::before { display: none; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.auth-card-header { text-align: center; margin-bottom: 1.85rem; }
.auth-logo-mark {
  margin: 0 auto .85rem;
  width: 52px; height: 52px; border-radius: 14px;
  font-size: 1.5rem; font-weight: 900;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,107,63,.35);
}
.auth-card h1 { font-size: 1.3rem; font-weight: 900; margin-bottom: .25rem; color: var(--text); }
.auth-card p  { font-size: .875rem; color: var(--text-muted); }

.auth-divider {
  display: flex; align-items: center; gap: .75rem;
  margin: 1.25rem 0; color: var(--text-muted); font-size: .8rem;
}
.auth-divider::before,
.auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.auth-back { text-align: center; margin-top: 1.25rem; }
.auth-back a {
  font-size: .82rem; color: var(--text-muted);
  display: inline-flex; align-items: center; gap: .25rem;
}
.auth-back a:hover { color: var(--green); text-decoration: none; }

/* ── Apply / Register hero ───────────────────────────────── */
.apply-hero {
  background: linear-gradient(135deg, var(--green) 0%, #003d22 100%);
  color: #fff; padding: 4rem 0; position: relative; overflow: hidden;
}
.apply-hero::before {
  content: '';
  position: absolute; top: -80px; right: -80px;
  width: 340px; height: 340px; border-radius: 50%;
  background: rgba(255,255,255,.05);
  pointer-events: none;
}
.apply-hero::after {
  content: '';
  position: absolute; bottom: -60px; left: -40px;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(252,210,15,.06);
  pointer-events: none;
}
.apply-hero p, .apply-hero h1, .apply-hero h2, .apply-hero h3 { color: inherit; }
.apply-hero-inner { display: flex; align-items: center; gap: 3rem; flex-wrap: wrap; position: relative; z-index: 1; }
.apply-hero-text  { flex: 1; min-width: 260px; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(8px);
  color: #fff; font-size: .7rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; padding: .25rem .75rem; border-radius: 99px; margin-bottom: 1rem;
}
.apply-hero-text h1 { font-size: clamp(1.4rem, 4vw, 2.25rem); font-weight: 900; margin-bottom: .75rem; line-height: 1.2; }
.apply-hero-text p  { font-size: .95rem; opacity: .85; max-width: 440px; line-height: 1.65; margin-bottom: 1rem; }
.apply-hero-fee {
  display: inline-block;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(10px);
  padding: .55rem 1.1rem; border-radius: var(--radius-sm); font-size: .9rem; margin-top: .5rem;
}
.apply-hero-fee strong { color: var(--gold); }

.apply-hero-perks { display: flex; flex-direction: column; gap: 1rem; min-width: 220px; }
.perk-item { display: flex; align-items: flex-start; gap: .85rem; }
.perk-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.perk-title { font-size: .875rem; font-weight: 700; }
.perk-desc  { font-size: .78rem; opacity: .75; margin-top: .1rem; }

/* ── How it works steps ──────────────────────────────────── */
.apply-steps-section {
  background: var(--page-bg); background-attachment: fixed;
  padding: 3.5rem 0;
}
.apply-steps { display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.apply-step  { flex: 1; min-width: 180px; display: flex; gap: 1rem; align-items: flex-start; }
.apply-step-num {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff; font-size: .95rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0,107,63,.3);
}
.apply-step-body h3 { font-size: .9rem; font-weight: 800; margin-bottom: .25rem; }
.apply-step-body p  { font-size: .82rem; color: var(--text-muted); }
.apply-step-arrow { color: var(--border-mid); display: flex; align-items: center; padding-top: .5rem; }

/* ── Registration form ───────────────────────────────────── */
.register-section { padding: 3rem 0 5rem; }
.register-container { display: flex; justify-content: center; }
.register-card {
  width: 100%; max-width: 600px;
  background: rgba(255,255,255,.42);
  backdrop-filter: blur(36px) saturate(2.1) brightness(1.05);
  -webkit-backdrop-filter: blur(36px) saturate(2.1) brightness(1.05);
  border: 1px solid rgba(255,255,255,.68);
  border-radius: var(--radius); padding: 2.5rem 2rem;
  box-shadow: 0 12px 48px rgba(0,0,0,.1), inset 0 1px 0 rgba(255,255,255,.85);
  animation: cardIn .3s var(--spring);
  position: relative; overflow: hidden;
}
.register-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,.22) 0%, transparent 100%);
  pointer-events: none;
}
[data-theme="dark"] .register-card {
  background: rgba(8,14,32,.62);
  border-color: rgba(255,255,255,.1);
  box-shadow: 0 12px 48px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06);
}
[data-theme="dark"] .register-card::before { display: none; }
.register-card-header { margin-bottom: 1.75rem; }
.register-card-header h2 { font-size: 1.25rem; font-weight: 900; margin-bottom: .3rem; }
.register-card-header p  { font-size: .875rem; color: var(--text-muted); }

.register-fee-note {
  display: flex; align-items: flex-start; gap: .5rem;
  background: var(--green-light); border: 1px solid var(--green-mid);
  border-radius: var(--radius-sm); padding: .85rem 1rem;
  font-size: .85rem; color: var(--green-dark); margin-bottom: 1rem;
  backdrop-filter: blur(6px);
}
.register-fee-note strong { color: var(--green); }

.register-signin {
  text-align: center; font-size: .82rem; color: var(--text-muted); margin-top: 1.25rem;
}
.register-signin a { color: var(--green); font-weight: 700; }

/* ── Reseller verify page ────────────────────────────────── */
.verify-page { padding: 4rem 0; }
.verify-card {
  max-width: 480px; margin: 0 auto;
  background: rgba(255,255,255,.42);
  backdrop-filter: blur(36px) saturate(2.1) brightness(1.05);
  -webkit-backdrop-filter: blur(36px) saturate(2.1) brightness(1.05);
  border: 1px solid rgba(255,255,255,.68);
  border-radius: var(--radius); padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 12px 48px rgba(0,0,0,.1), inset 0 1px 0 rgba(255,255,255,.85);
}
[data-theme="dark"] .verify-card {
  background: rgba(8,14,32,.62);
  border-color: rgba(255,255,255,.1);
  box-shadow: 0 12px 48px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06);
}
.verify-icon-wrap {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
}
.verify-icon-wrap.success { background: var(--green-light); color: var(--green); }
.verify-card h1  { font-size: 1.5rem; font-weight: 900; margin-bottom: .5rem; }
.verify-msg      { color: var(--text-muted); margin-bottom: 1.25rem; font-size: .9rem; }
.verify-ref      { background: var(--glass-bg); border: 1px solid var(--glass-border); backdrop-filter: blur(10px); border-radius: var(--radius-sm); padding: .75rem 1rem; margin-bottom: 1.75rem; }
.vr-label { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); display: block; margin-bottom: .25rem; }
.vr-code  { font-family: var(--font-mono); font-size: .9rem; font-weight: 700; color: var(--text); }
.verify-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.verify-help    { margin-top: 1.5rem; font-size: .775rem; color: var(--text-muted); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 760px) {
  .apply-hero-inner { flex-direction: column; gap: 2rem; }
  .apply-hero-perks { flex-direction: row; flex-wrap: wrap; gap: .75rem; }
  .perk-item        { min-width: calc(50% - .4rem); }
}

@media (max-width: 640px) {
  .auth-page        { padding: 2rem 0 3rem; }
  .apply-hero       { padding: 2.5rem 0; }
  .register-section { padding: 2rem 0 3.5rem; }
  .verify-page      { padding: 2.5rem 0; }
  .verify-card      { padding: 2rem 1.25rem; }
  .apply-steps-section { padding: 2rem 0; }
}

@media (max-width: 540px) {
  .auth-card        { padding: 1.5rem 1.1rem; }
  .register-card    { padding: 1.5rem 1.1rem; }
  .apply-steps      { flex-direction: column; }
  .apply-step-arrow { display: none; }
  .perk-item        { min-width: 100%; }
  .hero-badge       { font-size: .65rem; padding: .2rem .6rem; }
}

@media (max-width: 420px) {
  .auth-card        { padding: 1.25rem .9rem; }
  .register-card    { padding: 1.25rem .9rem; }
  .verify-actions   { flex-direction: column; }
  .verify-actions .btn { width: 100%; }
}
