/* ============================================================
   AECS MEMBER PORTAL — LOGIN.CSS
   Login page, registration card, modal styles
   ============================================================ */

/* ── Background ── */
.login-bg {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, #0a2040 50%, #0d1a35 100%);
  z-index: 0;
  overflow: hidden;
}

.login-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(201,168,76,0.08) 1px, transparent 0);
  background-size: 32px 32px;
}

.login-bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.glow-1 {
  width: 600px; height: 600px;
  top: -200px; left: -200px;
  background: radial-gradient(circle, rgba(201,168,76,0.12) 0%, transparent 70%);
}
.glow-2 {
  width: 500px; height: 500px;
  bottom: -150px; right: -100px;
  background: radial-gradient(circle, rgba(26,51,96,0.5) 0%, transparent 70%);
}

/* ── Page Layout ── */
.login-page {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
}

/* ── Left Branding Panel ── */
.login-branding {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  border-right: 1px solid rgba(201,168,76,0.15);
}

.branding-inner {
  max-width: 360px;
  text-align: center;
  animation: fadeIn 0.8s ease;
}

.brand-crest {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.crest-ring {
  width: 96px; height: 96px;
  border: 3px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,168,76,0.08);
  box-shadow: 0 0 40px rgba(201,168,76,0.2), inset 0 0 20px rgba(201,168,76,0.05);
  animation: pulse 4s ease-in-out infinite;
}

.crest-icon { font-size: 2.5rem; }

.brand-name { margin-bottom: 1.2rem; }
.brand-acronym {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.15em;
  line-height: 1;
  text-shadow: 0 0 30px rgba(201,168,76,0.4);
}
.brand-full {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.05em;
  margin-top: 0.35rem;
  line-height: 1.6;
}

.brand-tagline {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  font-style: italic;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

.brand-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.pillar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: var(--radius-md);
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  font-weight: 500;
  transition: var(--transition);
}
.pillar-item:hover {
  background: rgba(201,168,76,0.08);
  border-color: rgba(201,168,76,0.3);
  color: var(--gold-light);
}
.pillar-icon { font-size: 1rem; }

.brand-reg {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Right Cards Panel ── */
.login-right {
  width: 480px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 2.5rem;
  background: rgba(255,255,255,0.03);
}

.login-cards {
  width: 100%;
  max-width: 400px;
  animation: slideUp 0.5s ease;
}

/* ── Login Card ── */
.login-card {
  margin-bottom: 1.1rem;
  background: rgba(255,255,255,0.97);
  border: 1px solid rgba(201,168,76,0.2);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(201,168,76,0.1);
}

.login-card-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.login-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.login-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.login-link {
  color: var(--gold);
  font-weight: 600;
  transition: var(--transition);
}
.login-link:hover { color: var(--navy); }

/* ── Register Card ── */
.register-card {
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-light));
  border: 1px solid rgba(201,168,76,0.3);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3), var(--shadow-gold);
  padding: 1.1rem 1.4rem;
}

.register-card-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.register-card-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: 1;
}

.register-icon {
  font-size: 1.6rem;
  filter: drop-shadow(0 0 8px rgba(201,168,76,0.5));
}

.register-caption {
  font-family: var(--font-display);
  font-size: 0.88rem;
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.register-sub {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  margin-top: 0.15rem;
}

/* ── Footer Note ── */
.login-footer-note {
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  margin-top: 1.2rem;
  letter-spacing: 0.02em;
}

/* ── Registration Steps ── */
.reg-steps {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.reg-step {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.4;
  transition: var(--transition);
}

.reg-step.active { opacity: 1; }
.reg-step.completed { opacity: 0.7; }

.step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--border-light);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  transition: var(--transition);
  flex-shrink: 0;
}

.reg-step.active .step-num {
  background: var(--navy);
  color: var(--gold);
}

.reg-step.completed .step-num {
  background: var(--success);
  color: var(--white);
}

.step-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.reg-step.active .step-label { color: var(--navy); }

.reg-step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 0.5rem;
}

.reg-step-content { animation: fadeIn 0.2s ease; }

/* ── Info Box ── */
.reg-info-box {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  background: var(--info-light);
  border-radius: var(--radius-md);
  border: 1px solid rgba(43,108,176,0.2);
  margin-bottom: 1.25rem;
  font-size: 0.82rem;
  color: var(--info);
  line-height: 1.5;
}

/* ── Support Options ── */
.support-options { display: flex; flex-direction: column; gap: 0.6rem; }
.support-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: var(--transition);
  cursor: pointer;
}
.support-item:hover {
  border-color: var(--gold);
  background: var(--gold-pale);
}
.support-icon { font-size: 1.4rem; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .login-branding { display: none; }
  .login-right {
    width: 100%;
    padding: 1.5rem 1.25rem;
    align-items: flex-start;
    padding-top: 4rem;
  }
  .login-cards { max-width: 100%; }
}

@media (max-width: 480px) {
  .login-right { padding: 1.25rem; padding-top: 3rem; }
  .register-card-inner { flex-direction: column; align-items: flex-start; }
  .register-card .btn { width: 100%; }
}

/* ── Registration Modal Wide ── */
.reg-modal-wide { max-width: 640px; }

/* ── Progress Bar ── */
.reg-progress-wrap {
  padding: 0.75rem 1.75rem;
  border-bottom: 1px solid var(--border-light);
}
.reg-progress-bar {
  height: 4px;
  background: var(--border-light);
  border-radius: 999px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.reg-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.4,0,0.2,1);
}
.reg-step-dots {
  display: flex;
  justify-content: space-between;
}
.step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  opacity: 0.4;
  transition: var(--transition);
}
.step-dot.active  { opacity: 1; }
.step-dot.completed { opacity: 0.7; }
.dot-icon { font-size: 1.1rem; }
.dot-label { font-size: 0.68rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.step-dot.active .dot-label { color: var(--navy); }

/* ── Step Section Title ── */
.step-section-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--navy);
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold-pale);
}

/* ── Form Row ── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

/* ── Zone Grid ── */
.zone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  max-height: 320px;
  overflow-y: auto;
  padding: 0.1rem;
}
@media (max-width: 480px) { .zone-grid { grid-template-columns: 1fr; } }

.zone-option { cursor: pointer; display: block; }
.zone-option input[type=radio] { display: none; }
.zone-card {
  padding: 0.6rem 0.8rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
  background: var(--white);
}
.zone-option:hover .zone-card,
.zone-option.selected .zone-card {
  border-color: var(--gold);
  background: var(--gold-pale);
}
.zone-option.selected .zone-card { box-shadow: 0 0 0 2px rgba(201,168,76,0.3); }
.zone-num  { font-size: 0.7rem; font-weight: 700; color: var(--gold); margin-bottom: 0.15rem; }
.zone-name { font-size: 0.8rem; font-weight: 600; color: var(--navy); margin-bottom: 0.2rem; }
.zone-states { font-size: 0.68rem; color: var(--text-muted); line-height: 1.4; }
.zone-digital .zone-card { border-style: dashed; border-color: var(--navy-light); }
.zone-digital.selected .zone-card { border-color: var(--gold); border-style: solid; }

/* ── Pillar Select Grid ── */
.pillar-select-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 400px) { .pillar-select-grid { grid-template-columns: 1fr; } }

.pillar-select-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0.75rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
  gap: 0.4rem;
  background: var(--white);
}
.pillar-select-card input[type=checkbox] { display: none; }
.pillar-select-card:hover:not(.locked) {
  border-color: var(--gold);
  background: var(--gold-pale);
}
.pillar-select-card.selected {
  border-color: var(--gold);
  background: var(--gold-pale);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.2);
}
.pillar-select-card.locked {
  background: #f8f9fa;
  cursor: default;
  border-color: var(--success);
}
.pillar-select-icon { font-size: 1.8rem; }
.pillar-select-name { font-weight: 700; font-size: 0.82rem; color: var(--navy); }
.pillar-select-desc { font-size: 0.72rem; color: var(--text-muted); line-height: 1.4; }
.pillar-lock-badge {
  position: absolute;
  top: -8px; right: -8px;
  background: var(--success);
  color: var(--white);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* ── Photo Upload Area ── */
.photo-upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
  min-height: 160px;
  margin-bottom: 0.75rem;
  background: var(--cream);
}
.photo-upload-area:hover,
.photo-upload-area.has-photo {
  border-color: var(--gold);
  background: var(--gold-pale);
}
.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.photo-upload-icon { font-size: 2.5rem; }
.photo-upload-text { font-size: 0.88rem; font-weight: 600; color: var(--navy); }
.photo-upload-sub  { font-size: 0.75rem; color: var(--text-muted); }
.photo-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1rem;
}

/* ── Summary ── */
.reg-summary {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  margin: 1rem 0;
}
.reg-summary-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.reg-summary-grid { display: flex; flex-direction: column; gap: 0.45rem; }
.summary-row {
  display: flex;
  gap: 0.75rem;
  font-size: 0.82rem;
  align-items: flex-start;
}
.summary-key {
  min-width: 75px;
  font-weight: 600;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.summary-val { color: var(--text-primary); line-height: 1.4; }

/* ── Terms ── */
.reg-terms { margin: 0.75rem 0; }
.reg-terms-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1.5;
}
.reg-terms-label input[type=checkbox] {
  margin-top: 0.2rem;
  accent-color: var(--gold);
  flex-shrink: 0;
  width: 16px; height: 16px;
}

/* ── Info Box ── */
.reg-info-box {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  background: var(--info-light);
  border-radius: var(--radius-md);
  border: 1px solid rgba(43,108,176,0.2);
  font-size: 0.82rem;
  color: var(--info);
  line-height: 1.5;
}

/* ── Step Content Transition ── */
.reg-step-content { animation: fadeIn 0.2s ease; }

/* ── Primary Pillar Preview Card ── */
.primary-pillar-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-light));
  border-radius: var(--radius-md);
  border: 1px solid rgba(201,168,76,0.3);
  margin-bottom: 1rem;
  animation: fadeIn 0.2s ease;
  position: relative;
}
.pillar-preview-icon { font-size: 2rem; flex-shrink: 0; }
.pillar-preview-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--white);
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.pillar-preview-desc { font-size: 0.75rem; color: rgba(255,255,255,0.6); }
.pillar-preview-badge {
  position: absolute;
  top: -8px; right: 12px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Extra Pillars Grid ── */
.extra-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.4rem;
}
@media (max-width: 480px) { .extra-pillars-grid { grid-template-columns: 1fr 1fr; } }

.extra-pillar-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.65rem 0.5rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  background: var(--white);
  user-select: none;
}
.extra-pillar-option input[type=checkbox] { display: none; }
.extra-pillar-option:hover {
  border-color: var(--gold);
  background: var(--gold-pale);
}
.extra-pillar-option:has(input:checked) {
  border-color: var(--gold);
  background: var(--gold-pale);
  box-shadow: 0 0 0 2px rgba(201,168,76,0.25);
}
.extra-pillar-icon { font-size: 1.3rem; }
.extra-pillar-name { font-size: 0.72rem; font-weight: 600; color: var(--navy); line-height: 1.3; }
