/* ═══════════════════════════════════════════════════════════
   POSTER ZONE — Premium Login Page Styles
═══════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:    #080808;
  --black-2:  #111111;
  --black-3:  #1a1a1a;
  --black-4:  #242424;
  --black-5:  #2e2e2e;
  --yellow:   #FFD700;
  --yellow-2: #FFC200;
  --yellow-glow: rgba(255,215,0,0.15);
  --pink:     #FF1493;
  --pink-glow: rgba(255,20,147,0.12);
  --white:    #FFFFFF;
  --text:     #E8E4DF;
  --text-dim: #888888;
  --text-muted: #555555;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Bricolage Grotesque', sans-serif;
  --font-mono:    'Space Mono', monospace;
  --radius:   6px;
  --radius-lg: 12px;
  --radius-xl: 20px;
}

html, body {
  height: 100%;
  font-family: var(--font-body);
  background: var(--black);
  color: var(--text);
  overflow-x: hidden;
}

/* ── CUSTOM CURSOR ── */
.cursor {
  width: 10px; height: 10px;
  background: var(--yellow);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: difference;
}
.cursor-follower {
  width: 32px; height: 32px;
  border: 1.5px solid rgba(255,215,0,0.4);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, width 0.3s, height 0.3s, border-color 0.3s;
}
body:has(button:hover) .cursor,
body:has(a:hover) .cursor { width: 16px; height: 16px; background: var(--pink); }
body:has(button:hover) .cursor-follower,
body:has(a:hover) .cursor-follower { width: 48px; height: 48px; border-color: rgba(255,20,147,0.5); }

/* ── NOISE OVERLAY ── */
.noise-overlay {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

/* ── BACKGROUND ── */
.login-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 12s ease-in-out infinite;
}
.bg-orb--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,215,0,0.08) 0%, transparent 70%);
  top: -200px; left: -200px;
  animation-delay: 0s;
}
.bg-orb--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,20,147,0.07) 0%, transparent 70%);
  bottom: -150px; right: -150px;
  animation-delay: -4s;
}
.bg-orb--3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,215,0,0.05) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -8s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
}

.bg-grid {
  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: 60px 60px;
}

/* ── BACK BUTTON ── */
.back-home {
  position: fixed;
  top: 24px; left: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 10px 18px;
  border-radius: 100px;
  backdrop-filter: blur(12px);
  transition: all 0.25s ease;
  text-decoration: none;
}
.back-home:hover {
  color: var(--yellow);
  border-color: rgba(255,215,0,0.3);
  background: rgba(255,215,0,0.05);
  transform: translateX(-3px);
}

/* ── MAIN LAYOUT ── */
.login-container {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* ═══════════════════════════════════════════════════════════
   BRAND PANEL (Left)
═══════════════════════════════════════════════════════════ */
.brand-panel {
  position: relative;
  background: linear-gradient(135deg, rgba(255,215,0,0.04) 0%, rgba(255,20,147,0.03) 100%);
  border-right: 1px solid rgba(255,215,0,0.1);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 60px;
}

.brand-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(255,215,0,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(255,20,147,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.brand-panel-inner {
  position: relative;
  z-index: 2;
  max-width: 440px;
}

.brand-logo-wrap { display: inline-block; margin-bottom: 40px; }
.brand-logo {
  height: 80px;
  width: auto;
  filter: drop-shadow(0 0 24px rgba(255,215,0,0.3));
  transition: filter 0.3s ease;
}
.brand-logo:hover { filter: drop-shadow(0 0 40px rgba(255,215,0,0.5)); }

.brand-tagline { margin-bottom: 36px; }
.brand-tagline h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.5rem);
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 16px;
}
.brand-tagline h1 span { color: var(--yellow); }
.brand-tagline p {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 360px;
}

.brand-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
}
.brand-feat {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}
.feat-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.feat-dot--yellow { background: var(--yellow); box-shadow: 0 0 8px rgba(255,215,0,0.5); }
.feat-dot--pink { background: var(--pink); box-shadow: 0 0 8px rgba(255,20,147,0.5); }

.brand-testimonial {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(8px);
}
.testimonial-stars {
  color: var(--yellow);
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.testimonial-text {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 16px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--yellow), var(--pink));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--black);
  flex-shrink: 0;
}
.author-name { font-size: 0.85rem; font-weight: 700; color: var(--white); }
.author-loc { font-size: 0.75rem; color: var(--text-dim); }

/* Decorative Posters */
.deco-posters {
  position: absolute;
  right: -40px; top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0.15;
  pointer-events: none;
}
.deco-poster {
  border-radius: 4px;
  border: 1px solid rgba(255,215,0,0.3);
}
.dp1 { width: 80px; height: 113px; background: linear-gradient(135deg, #1a1a2e, #16213e); transform: rotate(8deg); }
.dp2 { width: 70px; height: 99px; background: linear-gradient(135deg, #1a0a2e, #2d1b4e); transform: rotate(-5deg); }
.dp3 { width: 75px; height: 106px; background: linear-gradient(135deg, #0a1a0a, #1a3a1a); transform: rotate(12deg); }

/* ═══════════════════════════════════════════════════════════
   AUTH PANEL (Right)
═══════════════════════════════════════════════════════════ */
.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 60px;
  background: var(--black-2);
}

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

/* ── TABS ── */
.auth-tabs {
  display: flex;
  position: relative;
  background: var(--black-3);
  border: 1px solid var(--black-5);
  border-radius: var(--radius-lg);
  padding: 4px;
  margin-bottom: 36px;
}

.auth-tab {
  flex: 1;
  padding: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: var(--text-dim);
  background: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: color 0.25s ease;
}
.auth-tab.active { color: var(--black); }

.tab-indicator {
  position: absolute;
  top: 4px; left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: var(--yellow);
  border-radius: var(--radius);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 12px rgba(255,215,0,0.3);
}
.tab-indicator.right { transform: translateX(100%); }

/* ── AUTH HEADER ── */
.auth-header { margin-bottom: 28px; }
.auth-header h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 8px;
}
.auth-header p {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ── SOCIAL AUTH ── */
.social-auth {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--black-3);
  border: 1px solid var(--black-5);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.social-btn:hover {
  background: var(--black-4);
  border-color: rgba(255,255,255,0.15);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

/* ── DIVIDER ── */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--black-5);
}
.divider span {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* ── INPUT GROUPS ── */
.input-group {
  margin-bottom: 18px;
}
.input-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.label-row label { margin-bottom: 0; }
.forgot-link {
  font-size: 0.78rem;
  color: var(--yellow);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.forgot-link:hover { color: var(--yellow-2); }

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
  flex-shrink: 0;
}
.input-wrap input {
  width: 100%;
  background: var(--black-3);
  border: 1.5px solid var(--black-5);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 13px 44px 13px 42px;
  transition: all 0.25s ease;
  outline: none;
}
.input-wrap input:not(:placeholder-shown) + .input-icon,
.input-wrap input:focus + .input-icon { color: var(--yellow); }
.input-wrap input::placeholder { color: var(--text-muted); }
.input-wrap input:focus {
  border-color: var(--yellow);
  background: rgba(255,215,0,0.03);
  box-shadow: 0 0 0 3px rgba(255,215,0,0.08), 0 2px 8px rgba(0,0,0,0.2);
}
.input-wrap input.error {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255,20,147,0.08);
}
/* Input without icon */
.input-wrap input:only-child {
  padding-left: 16px;
}

.toggle-pass {
  position: absolute;
  right: 14px;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.toggle-pass:hover { color: var(--yellow); }

.input-error {
  display: block;
  font-size: 0.75rem;
  color: var(--pink);
  margin-top: 6px;
  min-height: 16px;
  font-weight: 500;
}

/* ── PASSWORD STRENGTH ── */
.password-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.strength-bar {
  flex: 1;
  height: 4px;
  background: var(--black-5);
  border-radius: 2px;
  overflow: hidden;
}
.strength-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease, background 0.3s ease;
  width: 0%;
}
.strength-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── FORM ROW ── */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ── REMEMBER / CHECKBOX ── */
.remember-row { margin-bottom: 20px; }
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-dim);
  user-select: none;
}
.checkbox-label input { display: none; }
.checkbox-custom {
  width: 18px; height: 18px;
  border: 1.5px solid var(--black-5);
  border-radius: 4px;
  background: var(--black-3);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  position: relative;
}
.checkbox-label input:checked + .checkbox-custom {
  background: var(--yellow);
  border-color: var(--yellow);
}
.checkbox-label input:checked + .checkbox-custom::after {
  content: '';
  width: 5px; height: 9px;
  border: 2px solid var(--black);
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
  display: block;
}
.terms-link {
  color: var(--yellow);
  text-decoration: none;
  font-weight: 600;
}
.terms-link:hover { text-decoration: underline; }

/* ── SUBMIT BUTTON ── */
.auth-submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.03em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(255,215,0,0.25), 4px 4px 0 var(--yellow-2);
  margin-bottom: 20px;
}
.auth-submit-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}
.auth-submit-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 0 8px 32px rgba(255,215,0,0.35), 6px 6px 0 var(--yellow-2);
}
.auth-submit-btn:hover::before { opacity: 1; }
.auth-submit-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0 2px 8px rgba(255,215,0,0.2), 2px 2px 0 var(--yellow-2);
}
.auth-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-loader {
  width: 18px; height: 18px;
  border: 2px solid rgba(0,0,0,0.2);
  border-top-color: var(--black);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── SWITCH TEXT ── */
.switch-text {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.switch-link {
  background: none;
  border: none;
  color: var(--yellow);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0;
}
.switch-link:hover { color: var(--yellow-2); text-decoration: underline; }

/* ── TOAST ── */
.login-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--black-3);
  border: 1px solid rgba(255,215,0,0.3);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: var(--radius);
  z-index: 9000;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.login-toast.show { transform: translateX(-50%) translateY(0); }
.login-toast.success { border-color: rgba(255,215,0,0.5); }
.login-toast.error { border-color: rgba(255,20,147,0.5); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .login-container { grid-template-columns: 1fr; }
  .brand-panel { display: none; }
  .auth-panel { padding: 100px 32px 60px; }
  .auth-panel-inner { max-width: 100%; }
}

@media (max-width: 480px) {
  .auth-panel { padding: 80px 20px 40px; }
  .social-auth { flex-direction: column; }
  .form-row-2 { grid-template-columns: 1fr; }
  .cursor, .cursor-follower { display: none; }
}