/* ============================================================
   AUTHENTICATION PAGE — styles
   ============================================================ */
@import url('style.css');

.auth-page {
  min-height: 100vh;
  display: flex;
  overflow: hidden;
}

/* ── Left Panel ── */
.auth-left {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem;
  overflow: hidden;
}
.auth-left-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(11,12,16,0.6) 0%, rgba(212,175,55,0.12) 50%, rgba(11,12,16,0.8) 100%),
    url('https://images.unsplash.com/photo-1553913861-c0fddf2619ee?w=1200&q=85') center/cover no-repeat;
  animation: bgShift 12s ease-in-out infinite alternate;
}
@keyframes bgShift {
  from { transform: scale(1) translateX(0); }
  to   { transform: scale(1.05) translateX(-20px); }
}
.auth-left-content {
  position: relative;
  z-index: 2;
}
.auth-left-quote {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: rgba(245,240,232,0.9);
  line-height: 1.5;
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
  margin-bottom: 0.5rem;
}
.auth-left-attr {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Right Panel ── */
.auth-right {
  width: 480px;
  min-height: 100vh;
  background: rgba(11,12,16,0.97);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 3rem;
  border-left: 1px solid rgba(212,175,55,0.15);
  position: relative;
  overflow: hidden;
}
.auth-right::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.07) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Form Branding ── */
.auth-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold);
  text-shadow: var(--glow-gold-sm);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.auth-title {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  color: var(--white);
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}
.auth-sub {
  font-family: var(--font-body);
  color: var(--white-dim);
  font-size: 0.95rem;
  margin-bottom: 2.2rem;
}

/* ── Tabs ── */
.auth-tabs {
  display: flex;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(212,175,55,0.15);
  gap: 0;
}
.auth-tab {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-dim);
  padding: 0.6rem 1.5rem;
  cursor: pointer;
  position: relative;
  transition: color 0.3s;
  background: none;
  border: none;
  outline: none;
}
.auth-tab::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.auth-tab.active { color: var(--gold); }
.auth-tab.active::after { transform: scaleX(1); }

/* ── Floating Label Inputs ── */
.float-group {
  position: relative;
  margin-bottom: 1.6rem;
}
.float-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 1.2rem 1rem 2.8rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1.05rem;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
}
.float-input:focus {
  border-color: rgba(212,175,55,0.45);
  background: rgba(255,255,255,0.06);
}
.float-label {
  position: absolute;
  left: 2.8rem; top: 1rem;
  color: rgba(245,240,232,0.4);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  pointer-events: none;
  transition: transform 0.3s, color 0.3s, font-size 0.3s;
  transform-origin: left top;
}
.float-input:focus ~ .float-label,
.float-input:not(:placeholder-shown) ~ .float-label {
  transform: translateY(-0.65rem) scale(0.8);
  color: var(--gold);
}
.float-icon {
  position: absolute;
  left: 1.1rem; top: 1.15rem;
  font-size: 0.9rem;
  color: rgba(245,240,232,0.3);
  transition: color 0.3s;
}
.float-input:focus ~ .float-icon { color: var(--gold); }

/* ── Auth Custom Actions ── */
.auth-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: -0.5rem;
  margin-bottom: 2rem;
}
.remember-me {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--white-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.forgot-link {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--white-dim);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}
.forgot-link:hover { color: var(--gold); }

/* ── Buttons ── */
.btn-auth {
  width: 100%;
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.88rem;
  padding: 0.95rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: color 0.35s;
}
.btn-auth::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  transform: translateX(-102%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  z-index: 0;
}
.btn-auth:hover { color: var(--royal-black); }
.btn-auth:hover::before { transform: translateX(0); }
.btn-auth span { position: relative; z-index: 1; }

.auth-back-link {
  position: absolute;
  top: 2rem; left: 3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-dim);
  text-decoration: none;
  transition: color 0.3s;
}
.auth-back-link:hover { color: var(--gold); }

/* ── Social Login ── */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 2rem 0;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: rgba(245,240,232,0.25);
  letter-spacing: 0.2e;
  text-transform: uppercase;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.auth-divider:not(:empty)::before { margin-right: .75rem; }
.auth-divider:not(:empty)::after { margin-left: .75rem; }

.social-group {
  display: flex;
  gap: 1rem;
}
.social-btn {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 0.75rem;
  color: var(--white-dim);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.3s;
}
.social-btn:hover {
  border-color: rgba(212,175,55,0.5);
  color: var(--gold);
  background: var(--gold-pale);
}

/* ── Error & Success states ── */
.field-error {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: #e05555;
  margin-top: 0.3rem;
  display: none;
}
.float-group.has-error .float-input { border-color: #e05555; }
.float-group.has-error .field-error { display: block; }

/* ── Logout Overlay ── */
#logoutOverlay {
  position: fixed;
  inset: 0;
  background: var(--royal-black);
  z-index: 9999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
#logoutOverlay.show {
  opacity: 1;
  pointer-events: all;
}
.logout-icon {
  font-size: 3rem;
  color: var(--gold);
  animation: logoutSpin 2s linear infinite;
}
@keyframes logoutSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.logout-text {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--white);
  letter-spacing: 0.05em;
}
.logout-subtext {
  font-family: var(--font-body);
  color: var(--gold);
  font-style: italic;
}