/* ============================================================
   ROSTAR ROLEPLAY — Auth Pages Styles
   ============================================================ */

/* ============================================================
   AUTH LAYOUT
   ============================================================ */
.auth-page {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Left side - visual */
.auth-visual {
  position: relative;
  overflow: hidden;
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-8);
}

.auth-visual-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.auth-visual-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.35;
  filter: grayscale(20%);
}

.auth-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11,11,11,0.4), rgba(11,11,11,0.7) 60%, rgba(11,11,11,0.95));
  z-index: 1;
}

.auth-visual-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.auth-visual-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.auth-visual-quote {
  max-width: 400px;
}

.auth-visual-quote blockquote {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.auth-visual-quote cite {
  font-size: var(--font-sm);
  font-style: normal;
  color: var(--text-muted);
}

.auth-visual-stats {
  display: flex;
  gap: var(--space-7);
}

.auth-visual-stat .num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  display: block;
}

.auth-visual-stat .lbl {
  font-size: var(--font-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* Right side - form */
.auth-form-side {
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-7);
}

.auth-form-wrap {
  width: 100%;
  max-width: 440px;
}

.auth-form-header {
  margin-bottom: var(--space-7);
}

.auth-form-header h1 {
  font-size: 1.875rem;
  margin-bottom: var(--space-2);
}

.auth-form-header p {
  font-size: var(--font-sm);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-5) 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-divider span {
  font-size: var(--font-xs);
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.auth-footer {
  margin-top: var(--space-6);
  text-align: center;
  font-size: var(--font-sm);
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--accent-bright);
  font-weight: 500;
  transition: opacity var(--duration-fast);
}
.auth-footer a:hover { opacity: 0.8; }

/* Social login buttons */
.social-auth-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.social-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: var(--font-sm);
  font-weight: 500;
  transition: all var(--duration-fast);
  cursor: pointer;
  text-decoration: none;
}

.social-auth-btn:hover {
  border-color: rgba(255,255,255,0.12);
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.social-auth-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Password strength */
.password-strength {
  margin-top: var(--space-2);
}

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

.strength-segment {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--bg-elevated);
  transition: background var(--duration-base);
}

.strength-segment.filled.weak   { background: #EF4444; }
.strength-segment.filled.fair   { background: #F59E0B; }
.strength-segment.filled.good   { background: var(--accent-bright); }
.strength-segment.filled.strong { background: #4CAF50; }

.strength-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-form-side { padding: var(--space-7) var(--space-5); min-height: 100svh; }
}

@media (max-width: 480px) {
  .auth-form-side { padding: var(--space-5) var(--space-4); }
  .social-auth-btns { grid-template-columns: 1fr; }
}
