/* css/mc-auth.css */
body {
  margin: 0;
  padding: 0;
  background-color: var(--charcoal);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Remove default navbar from auth page as the split screen takes the whole viewport */
.auth-nav {
  display: none;
}

.auth-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.auth-left {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 60px;
  background: url('../images/hero-cta.webp') center/cover no-repeat;
}

.auth-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,12,16,0.3) 0%, rgba(11,12,16,0.8) 100%);
  z-index: 1;
}

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

.auth-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.auth-logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 1px;
}

.auth-hero-text h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.1;
}

.auth-hero-text p {
  font-size: 14px;
  color: var(--gray);
  max-width: 400px;
  line-height: 1.5;
}

.auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #1a1c23 0%, var(--charcoal) 100%);
  padding: 40px;
  position: relative;
}

.auth-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/car1.jpg') center/cover no-repeat; /* Fallback subtle texture */
  opacity: 0.03;
  mix-blend-mode: screen;
  pointer-events: none;
}

.auth-form-container {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 2;
}

.auth-tabs {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.auth-tab {
  background: transparent;
  border: none;
  color: var(--gray2);
  font-size: 24px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  padding-bottom: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.auth-tab.active {
  color: var(--white);
}

.auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--gold);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--gold-dim);
}

.auth-tab:hover:not(.active) {
  color: var(--white);
}

.auth-divider {
  width: 1px;
  height: 20px;
  background-color: var(--card-border);
}

.auth-form {
  display: none;
  animation: slideUpFade 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.auth-form.active {
  display: block;
}

.form-group {
  margin-bottom: 12px;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--gray);
  margin-bottom: 4px;
}

.form-group input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  padding: 6px 0;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-bottom-color: var(--gold);
}

.form-group input::placeholder {
  color: transparent; /* Clean look, rely on labels */
}

.auth-type-toggle {
  display: flex;
  gap: 20px;
  margin-bottom: 12px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--gray);
  cursor: pointer;
}

.radio-label input[type="radio"] {
  accent-color: var(--gold);
  width: 16px;
  height: 16px;
}

.terms-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--gray);
}

.terms-checkbox input[type="checkbox"] {
  accent-color: var(--gold);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.terms-checkbox a {
  color: var(--gray);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.3);
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.terms-checkbox a:hover {
  color: var(--white);
}

.auth-btn {
  width: 100%;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  padding: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.auth-btn:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--white);
}

.auth-btn-gold {
  background-color: var(--gold);
  border: 1px solid var(--gold);
  color: var(--black);
}

.auth-btn-gold:hover {
  background-color: var(--gold-hover);
  border-color: var(--gold-hover);
}

.auth-social {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 12px;
}

.auth-social a {
  color: var(--gray);
  font-size: 18px;
  transition: color 0.3s ease;
  text-decoration: none;
}

.auth-social a:hover {
  color: var(--white);
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .auth-wrapper {
    flex-direction: column;
  }
  .auth-left {
    flex: none;
    min-height: 180px;
    padding: 24px 20px;
  }
  .auth-hero-text h1 {
    font-size: 26px;
    margin-bottom: 6px;
  }
  .auth-right {
    flex: none;
    padding: 24px 20px;
    align-items: flex-start;
  }
}
