/* ═══════════════════════════════════════════
   AUTH SCREEN — Corporate Identity Entry
═══════════════════════════════════════════ */

#screen-auth {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  background: var(--surface-0);
  overflow: hidden;
}

/* ── Left Panel (Branding) ── */
.auth-panel-left {
  flex: 0 0 52%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--sp-16) 72px;
  overflow: hidden;
}

.auth-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(99,102,241,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 60% 80% at 80% 80%, rgba(139,92,246,0.12) 0%, transparent 60%),
    linear-gradient(160deg, #0d1220 0%, #080c18 100%);
  z-index: 0;
}

.auth-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: 1;
}

.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 8s ease-in-out infinite;
  z-index: 1;
}
.auth-orb-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(99,102,241,0.25), transparent 70%);
  top: -10%; left: -10%;
  animation-delay: 0s;
}
.auth-orb-2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(139,92,246,0.18), transparent 70%);
  bottom: 10%; right: 5%;
  animation-delay: -4s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%       { transform: translate(20px,-30px) scale(1.05); }
  66%       { transform: translate(-15px, 20px) scale(0.95); }
}

.auth-brand-content {
  position: relative;
  z-index: 2;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-12);
}

.auth-logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 20px rgba(99,102,241,0.5);
}

.auth-logo-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.auth-logo-text span { color: var(--accent-primary); }

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: var(--r-full);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--sp-6);
}

.auth-badge-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

.auth-headline {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--sp-5);
  background: linear-gradient(135deg, #f0f2ff 0%, #a8b8f5 60%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-subtext {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: var(--sp-10);
}

.auth-stats {
  display: flex;
  gap: var(--sp-8);
}

.auth-stat-item { text-align: left; }
.auth-stat-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Right Panel (Form) ── */
.auth-panel-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-8) var(--sp-12);
  background: var(--surface-1);
  border-left: 1px solid var(--border-subtle);
}

.auth-card {
  width: 100%;
  max-width: 420px;
}

.auth-card-header {
  margin-bottom: var(--sp-8);
}

.auth-card-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-2);
}

.auth-card-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ── Auth Tabs ── */
.auth-tabs {
  display: flex;
  background: var(--surface-2);
  border-radius: var(--r-lg);
  padding: 4px;
  margin-bottom: var(--sp-8);
  gap: 4px;
}

.auth-tab {
  flex: 1;
  padding: 10px 0;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--r-md);
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-muted);
  transition: all var(--t-fast);
}

.auth-tab.active {
  background: var(--surface-4);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

/* ── Form Layout ── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.input-icon-wrap {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
  pointer-events: none;
}

.input-icon-wrap .input {
  padding-left: 42px;
}

.auth-submit-btn {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 15px;
  border-radius: var(--r-lg);
  margin-top: var(--sp-2);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  color: var(--text-muted);
  font-size: 12px;
  margin: var(--sp-2) 0;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--border-subtle);
}

.auth-info-box {
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: var(--sp-2);
}

.auth-info-box strong { color: var(--text-secondary); }

/* ── Join Session Form ── */
.join-session-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.session-code-input {
  font-size: 28px !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  font-family: var(--font-mono) !important;
}

/* ── Security Badge ── */
.auth-security-badges {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-top: var(--sp-6);
}

.security-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.security-badge-icon {
  width: 20px;
  height: 20px;
  background: var(--surface-3);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  #screen-auth { flex-direction: column; }
  .auth-panel-left { flex: 0 0 auto; padding: var(--sp-10) var(--sp-8); min-height: 300px; }
  .auth-panel-right { padding: var(--sp-8); }
  .auth-stats { flex-wrap: wrap; gap: var(--sp-4); }
}

@media (max-width: 560px) {
  .auth-panel-left { display: none; }
  .auth-panel-right { padding: var(--sp-6); }
}
