/* ===========================
   JUSTEXPOSURE AUTH / LOGIN & SIGNUP STYLES
   Split-pane layout based on BetterBase architecture
   =========================== */

.login-page {
  height: 100vh;
  min-height: 650px;
  display: grid;
  grid-template-columns: 480px 1fr;
  overflow: hidden;
  background: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* --- Left Pane --- */
.login-left {
  background: #0C1222;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  padding: 28px 40px;
  overflow-y: auto;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.login-left::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
  width: 0;
  height: 0;
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  margin-bottom: 24px;
  width: fit-content;
}

.login-logo span {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.login-logo span span {
  color: var(--accent-red-hover);
}

.login-form-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 390px;
  margin: 0 auto;
  width: 100%;
}

.login-form-container h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
  color: var(--text-main);
}

.login-subtitle {
  color: #94A3B8;
  font-size: 14px;
  margin-bottom: 20px;
}

/* --- Auth Buttons --- */
.auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  font-family: inherit;
}

/* Guest Button — Prominent Pink/Red Glow */
.auth-btn-guest {
  background: linear-gradient(135deg, rgba(255, 42, 84, 0.18) 0%, rgba(255, 110, 80, 0.1) 100%);
  border: 1px solid rgba(255, 42, 84, 0.4);
  color: #FF5E7E;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 15px rgba(255, 42, 84, 0.1);
}

.auth-btn-guest:hover {
  background: linear-gradient(135deg, rgba(255, 42, 84, 0.3) 0%, rgba(255, 110, 80, 0.2) 100%);
  border-color: var(--accent-red-hover);
  box-shadow: 0 6px 25px rgba(255, 42, 84, 0.25);
  transform: translateY(-2px);
}

/* Spotify OAuth Button */
.auth-btn-spotify {
  background: rgba(30, 215, 96, 0.08);
  border: 1px solid rgba(30, 215, 96, 0.3);
  color: #1DB954;
}

.auth-btn-spotify:hover {
  background: rgba(30, 215, 96, 0.18);
  border-color: #1DB954;
  transform: translateY(-1px);
}

/* Secondary OAuth Button */
.auth-btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.auth-btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

/* --- Divider --- */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 2px 0 14px;
  color: #64748B;
  font-size: 13px;
  font-weight: 600;
}

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

/* --- Form Fields --- */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-field label {
  font-size: 13px;
  font-weight: 700;
  color: #E2E8F0;
}

.field-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.forgot-link {
  font-size: 12px;
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.2s;
}

.forgot-link:hover {
  color: var(--accent-red-hover);
}

.form-field input,
.form-select {
  width: 100%;
  padding: 11px 15px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #FFF;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-select option {
  background: #0F172A;
  color: #FFF;
}

.form-field input:focus,
.form-select:focus {
  border-color: var(--accent-red-hover);
  box-shadow: 0 0 0 3px rgba(255, 42, 84, 0.15);
}

.form-field input::placeholder {
  color: #64748B;
}

.password-wrapper {
  position: relative;
}

.password-wrapper input {
  padding-right: 42px;
}

.toggle-pw {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.toggle-pw:hover {
  color: #FFF;
}

.btn-full {
  width: 100%;
  padding: 13px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
  margin-top: 2px;
}

/* --- Footer Copy --- */
.signup-link {
  font-size: 13px;
  color: #94A3B8;
  text-align: center;
  margin-top: 6px;
}

.signup-link a {
  color: var(--accent-red-hover);
  text-decoration: none;
  font-weight: 700;
}

.terms-text {
  font-size: 11px;
  color: #64748B;
  text-align: center;
  line-height: 1.5;
  margin-top: 16px;
}

.terms-text a {
  color: #94A3B8;
  text-decoration: underline;
}

/* --- Right Pane --- */
.login-right {
  position: relative;
  background: #080C16;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.login-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 42, 84, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 42, 84, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.login-right::before {
  content: '';
  position: absolute;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 42, 84, 0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.login-quote-container {
  position: relative;
  z-index: 1;
  max-width: 560px;
  padding: 40px;
}

.quote-mark {
  font-size: 110px;
  font-family: Georgia, serif;
  line-height: 1;
  color: var(--accent-red-hover);
  opacity: 0.35;
  user-select: none;
  margin-bottom: -24px;
}

blockquote {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.3px;
  color: var(--text-main);
  border: none;
  padding: 0;
  margin: 0 0 32px;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.quote-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: #FFF;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(255, 42, 84, 0.4);
}

.quote-author div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quote-author strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.quote-author span {
  font-size: 13px;
  color: #94A3B8;
}

/* Responsive */
@media (max-width: 860px) {
  .login-page {
    grid-template-columns: 1fr;
  }
  .login-right {
    display: none;
  }
  .login-left {
    padding: 28px 24px;
  }
}
