/* ===================================================================
   UNKSOLVER AUTHENTICATION & SIGNUP ENHANCEMENT STYLES
   Obsidian Dark Theme · Cloudflare Turnstile & Email Verification
   =================================================================== */

.auth-split-layout {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3.5rem) 1.25rem;
  background: radial-gradient(circle at 50% 15%, rgba(56, 189, 248, 0.08) 0%, transparent 65%),
              radial-gradient(circle at 10% 85%, rgba(139, 92, 246, 0.06) 0%, transparent 55%),
              var(--bg-main);
  box-sizing: border-box;
}

.auth-split-container {
  width: 100%;
  max-width: 1080px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: stretch;
  margin: 0 auto;
}

/* Left Showcase Panel */
.auth-showcase {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(2rem, 3.5vw, 2.75rem);
  background: rgba(14, 18, 27, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}

.auth-showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.8), rgba(139, 92, 246, 0.6), transparent);
}

.showcase-header .brand {
  margin-bottom: 2rem;
  display: inline-flex;
}

.showcase-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.showcase-title .gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.showcase-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Trust Value List */
.showcase-features {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 2rem;
}

.showcase-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.feature-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-info h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.2rem;
}

.feature-info p {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.45;
  margin: 0;
}

/* Code Snippet Box in Showcase */
.showcase-code {
  background: #090c13;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.6;
  overflow-x: auto;
}

.code-hl-keyword { color: #f43f5e; }
.code-hl-str { color: #34d399; }
.code-hl-fn { color: #38bdf8; }
.code-hl-comment { color: #64748b; }

/* Right Form Card */
.auth-main-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  display: flex;
  flex-direction: column;
}

.auth-main-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.8), rgba(139, 92, 246, 0.6), transparent);
}

/* Multi-Step Indicator */
.steps-indicator {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.step-tab {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: var(--transition);
}

.step-tab.active {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.3);
}

.step-tab.completed {
  background: rgba(52, 211, 153, 0.08);
  border-color: rgba(52, 211, 153, 0.3);
}

.step-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-tab.active .step-badge {
  background: var(--accent-cyan);
  color: #0b0e14;
}

.step-tab.completed .step-badge {
  background: var(--accent-emerald);
  color: #0b0e14;
}

.step-text {
  display: flex;
  flex-direction: column;
}

.step-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f1f5f9;
}

.step-subtitle {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* Password Strength Meter */
.password-strength-container {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

.strength-meter-bar {
  display: flex;
  gap: 5px;
  height: 4px;
  margin-bottom: 0.4rem;
}

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

.strength-segment.active-weak { background: #ef4444; }
.strength-segment.active-medium { background: #f59e0b; }
.strength-segment.active-good { background: #38bdf8; }
.strength-segment.active-strong { background: #10b981; }

.strength-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.strength-status-text {
  font-weight: 600;
}

.password-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.checklist-item.met {
  color: var(--accent-emerald);
}

.checklist-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* Captcha Container */
.captcha-box-wrapper {
  margin: 1.25rem 0;
  padding: 0.85rem;
  background: rgba(14, 18, 27, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 82px;
}

.captcha-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.captcha-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  padding: 2px 7px;
  border-radius: 4px;
}

/* Step 2: 6-Digit OTP Box */
.otp-card-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.otp-icon-bubble {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.2);
}

.otp-email-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #f1f5f9;
  margin-top: 0.5rem;
}

.otp-email-badge .change-email-btn {
  color: var(--accent-cyan);
  background: none;
  border: none;
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  margin-left: 4px;
}

.otp-inputs-row {
  display: flex;
  justify-content: center;
  gap: clamp(6px, 1.8vw, 12px);
  margin: 1.5rem 0;
}

.otp-digit {
  width: clamp(40px, 9vw, 54px);
  height: clamp(50px, 11vw, 62px);
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  font-family: var(--font-mono);
  font-weight: 800;
  text-align: center;
  background: rgba(14, 18, 27, 0.8);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #ffffff;
  transition: all 0.2s ease;
  caret-color: var(--accent-cyan);
}

.otp-digit:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25), 0 0 15px rgba(56, 189, 248, 0.2);
  background: rgba(20, 26, 38, 0.9);
}

.otp-digit.filled {
  border-color: rgba(56, 189, 248, 0.6);
  background: rgba(56, 189, 248, 0.05);
}

.otp-timer-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.otp-countdown {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  font-weight: 600;
}

.resend-btn {
  background: none;
  border: none;
  color: var(--accent-cyan);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: var(--transition);
}

.resend-btn:disabled {
  color: var(--text-dim);
  cursor: not-allowed;
  opacity: 0.6;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .auth-split-container {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .auth-showcase {
    display: none; /* Keep focus on main card on mobile/tablet */
  }
}
