/* ============================================================
   AUTH.CSS — Login, Register, Forgot Password, Verify Email
   Easy eSIM Platform | Powered by Airalo + DESC Token
   ============================================================ */

/* ── Auth Root ── */
.auth-root {
  min-height: 100vh;
  display: flex;
  background: #070b14;
  font-family: 'Inter', -apple-system, sans-serif;
  color: #f0f4f8;
}

/* ── Auth Left Panel ── */
.auth-left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
}

/* ── Auth Right Visual Panel ── */
.auth-right {
  width: 480px;
  background: linear-gradient(135deg, #0d1b3e 0%, #0a2040 50%, #0f1f3a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
  border-left: 1px solid rgba(255,255,255,0.06);
}

.auth-right::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.auth-right::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(0,212,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Auth Right Content */
.auth-right-content { position: relative; z-index: 1; text-align: center; width: 100%; }

.auth-right-logo {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, #00d4ff, #6366f1);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 900; color: #fff;
  margin: 0 auto 24px;
  box-shadow: 0 12px 36px rgba(0,212,255,0.3);
  animation: breathe 3s ease-in-out infinite;
}

.auth-right-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.2;
}

.auth-right-title span {
  background: linear-gradient(135deg, #00d4ff, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-right-subtitle {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

/* Auth Feature List */
.auth-features { display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }

.auth-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  text-align: left;
}

.auth-feature-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.auth-feature-icon.blue   { background: rgba(0,212,255,0.12);  color: #00d4ff; }
.auth-feature-icon.purple { background: rgba(99,102,241,0.12); color: #818cf8; }
.auth-feature-icon.green  { background: rgba(16,185,129,0.12); color: #10b981; }

.auth-feature-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: #fff;
}

.auth-feature-text {
  font-size: 0.73rem;
  color: rgba(255,255,255,0.4);
}

/* Stats Row */
.auth-right-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.auth-right-stat-value {
  font-size: 1.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #00d4ff, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.auth-right-stat-label {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Auth Form Box ── */
.auth-box {
  width: 100%;
  max-width: 420px;
}

.auth-box-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 0.82rem;
  text-decoration: none;
  margin-bottom: 28px;
  transition: color 0.2s ease;
}

.auth-box-back:hover { color: #00d4ff; }

.auth-box-header { margin-bottom: 28px; }

.auth-box-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.auth-logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, #00d4ff, #6366f1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 900; color: #fff;
}

.auth-logo-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.auth-logo-name span { color: #00d4ff; }

.auth-box-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.2;
}

.auth-box-subtitle {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}

.auth-box-subtitle a {
  color: #00d4ff;
  text-decoration: none;
  font-weight: 600;
}

.auth-box-subtitle a:hover { text-decoration: underline; }

/* ── Register Tier Selection ── */
.register-tier-select {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.tier-select-card {
  padding: 14px 10px;
  background: rgba(255,255,255,0.03);
  border: 2px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tier-select-card:hover { border-color: rgba(255,255,255,0.15); }

.tier-select-card.selected-user   { border-color: #10b981; background: rgba(16,185,129,0.07); }
.tier-select-card.selected-agent  { border-color: #00d4ff; background: rgba(0,212,255,0.07); }
.tier-select-card.selected-distrib{ border-color: #6366f1; background: rgba(99,102,241,0.07); }

.tier-select-icon {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.tier-select-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}

.tier-select-discount {
  font-size: 0.68rem;
  font-weight: 600;
}

.tier-select-card:nth-child(1) .tier-select-discount { color: #10b981; }
.tier-select-card:nth-child(2) .tier-select-discount { color: #00d4ff; }
.tier-select-card:nth-child(3) .tier-select-discount { color: #818cf8; }

/* ── OAuth Buttons ── */
.oauth-buttons { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }

.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 11px;
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.oauth-btn:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.15);
  color: #fff;
}

.oauth-btn img,
.oauth-btn .oauth-icon { width: 18px; height: 18px; }

/* ── Password Strength ── */
.password-strength { margin-top: 8px; }

.password-strength-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 5px;
}

.strength-segment {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  transition: background 0.3s ease;
}

.strength-segment.weak   { background: #ef4444; }
.strength-segment.fair   { background: #fbbf24; }
.strength-segment.good   { background: #00d4ff; }
.strength-segment.strong { background: #10b981; }

.strength-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
}

.strength-label.weak   { color: #ef4444; }
.strength-label.fair   { color: #fbbf24; }
.strength-label.good   { color: #00d4ff; }
.strength-label.strong { color: #10b981; }

/* ── OTP Input ── */
.otp-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 24px 0;
}

.otp-input {
  width: 52px; height: 60px;
  background: rgba(255,255,255,0.05);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  outline: none;
  transition: all 0.2s ease;
  font-family: 'Courier New', monospace;
}

.otp-input:focus {
  border-color: #6366f1;
  background: rgba(99,102,241,0.08);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.otp-input.filled {
  border-color: #10b981;
  background: rgba(16,185,129,0.07);
}

/* ── Auth Form Submit ── */
.auth-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #00d4ff, #6366f1);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(0,212,255,0.3);
  font-family: 'Inter', sans-serif;
}

.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0,212,255,0.45);
}

.auth-submit:active { transform: translateY(0); }
.auth-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── Auth Terms ── */
.auth-terms {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  text-align: center;
  margin-top: 16px;
  line-height: 1.6;
}

.auth-terms a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}

.auth-terms a:hover { color: #00d4ff; text-decoration: underline; }

/* ── Verify Email Page ── */
.verify-icon {
  width: 80px; height: 80px;
  background: rgba(99,102,241,0.12);
  border: 2px solid rgba(99,102,241,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  color: #818cf8;
  margin: 0 auto 24px;
  animation: breathe 2.5s ease-in-out infinite;
}

.verify-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  text-align: center;
  margin-bottom: 12px;
}

.verify-text {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
  line-height: 1.7;
  margin-bottom: 28px;
}

.verify-email-highlight {
  color: #00d4ff;
  font-weight: 600;
}

.verify-resend {
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

.verify-resend button {
  background: none;
  border: none;
  color: #00d4ff;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.82rem;
  padding: 0;
  transition: color 0.2s ease;
}

.verify-resend button:hover { color: #6366f1; }

/* ── Forgot Password ── */
.forgot-success {
  display: none;
  text-align: center;
}

.forgot-success.show { display: block; }

.forgot-success-icon {
  width: 72px; height: 72px;
  background: rgba(16,185,129,0.12);
  border: 2px solid rgba(16,185,129,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  color: #10b981;
  margin: 0 auto 20px;
}

/* ── Auth Footer ── */
.auth-footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  text-align: center;
  padding: 12px;
  font-size: 0.73rem;
  color: rgba(255,255,255,0.2);
  background: linear-gradient(transparent, rgba(7,11,20,0.8));
}

.auth-footer a {
  color: rgba(255,255,255,0.3);
  text-decoration: none;
}

.auth-footer a:hover { color: rgba(255,255,255,0.5); }

/* ── Responsive Auth ── */
@media (max-width: 900px) {
  .auth-right { display: none; }
  .auth-left  { padding: 30px 20px; }
}

@media (max-width: 480px) {
  .register-tier-select { grid-template-columns: 1fr; }
  .otp-inputs { gap: 7px; }
  .otp-input  { width: 44px; height: 52px; font-size: 1.2rem; }
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.04); }
}
