/* ============================================================
   auth.css — login / register / forgot-password
   ============================================================ */

/* Floating "back to home" button (used on standalone auth pages) */
.au-back {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem 0.6rem 0.75rem;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(31,31,30,0.08);
  border-radius: 100px;
  font-family: var(--gx-font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gx-dark);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}

.au-back svg {
  transition: transform 0.2s;
}

.au-back:hover {
  background: var(--gx-dark);
  color: var(--gx-lime);
  border-color: var(--gx-dark);
  transform: translateX(-2px);
}

.au-back:hover svg {
  transform: translateX(-2px);
}

@media (max-width: 640px) {
  .au-back {
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 0.85rem 0.5rem 0.65rem;
    font-size: 0.8125rem;
  }
}

.au-page {
  min-height: 100vh;
  background: var(--gx-off-white);
}

.au-page__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.au-page__visual {
  position: relative;
  background:
    linear-gradient(135deg, #0c1020 0%, #0a0a0c 100%),
    url("../../images/cars/car3.jpg");
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  color: var(--gx-white);
  padding: 3rem 3rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  isolation: isolate;
}

.au-page__visual--register {
  background:
    linear-gradient(135deg, rgba(12,16,32,0.7) 0%, rgba(10,10,12,0.9) 100%),
    url("../../images/cars/car2.jpg");
  background-size: cover;
  background-position: center;
}

.au-page__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 50% 60% at 80% 30%, rgba(201,236,102,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 20% 80%, rgba(80,110,255,0.16) 0%, transparent 60%);
}

.au-page__visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,8,16,0.4) 0%, rgba(6,8,16,0.85) 100%);
  z-index: 0;
}

.au-page__visual-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 3rem;
}

.au-page__brand {
  font-family: var(--gx-font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gx-white);
}

.au-page__brand--center { text-align: center; }

.au-page__quote {
  margin-top: auto;
  font-family: var(--gx-font-heading);
}
.au-page__quote p {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.45;
  margin: 0 0 1rem;
  color: rgba(255,255,255,0.92);
  letter-spacing: -0.01em;
}
.au-page__quote-author {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  font-family: var(--gx-font-body);
}

.au-page__visual-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.au-page__visual-stats > div { display: flex; flex-direction: column; gap: 0.15rem; }
.au-page__visual-stats strong {
  font-family: var(--gx-font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gx-lime);
}
.au-page__visual-stats span {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.55);
}

.au-page__perks { margin-top: auto; }
.au-page__perks h3 {
  font-family: var(--gx-font-heading);
  font-size: 1.625rem;
  font-weight: 600;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}
.au-page__perks ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.au-page__perks li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.85);
}
.au-page__perk-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gx-lime);
  box-shadow: 0 0 12px rgba(201,236,102,0.5);
  flex-shrink: 0;
}

.au-page__form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
}

.au-page__form-wrap {
  width: 100%;
  max-width: 26rem;
}

.au-page__eyebrow {
  color: var(--gx-lime-dark);
  display: inline-block;
  margin-bottom: 1rem;
}

.au-page__title {
  font-family: var(--gx-font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 0.85rem;
  color: var(--gx-dark);
}

.au-page__desc {
  color: rgba(31,31,30,0.6);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0 0 2rem;
}

.au-page--centered {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 1.5rem 4rem;
  background:
    radial-gradient(ellipse 50% 60% at 50% 0%, rgba(201,236,102,0.15) 0%, transparent 55%),
    var(--gx-off-white);
}

.au-page__centered-card {
  width: 100%;
  max-width: 30rem;
  background: var(--gx-white);
  border: 1px solid var(--gx-gray-light);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.04);
}

.au-page__centered-card .au-page__title { text-align: center; }
.au-page__centered-card .au-page__desc { text-align: center; margin-bottom: 1rem; }

/* ---- Form atoms ---- */
.au-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.au-form__grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.au-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}

.au-field__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(31,31,30,0.7);
}

.au-field__input {
  height: 3rem;
  padding: 0 1rem;
  background: var(--gx-white);
  border: 1.5px solid var(--gx-gray-light);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--gx-dark);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.au-field__input::placeholder { color: rgba(31,31,30,0.3); }
.au-field__input:focus {
  border-color: var(--gx-dark);
  background: #fff;
}

.au-field__hint {
  font-size: 0.75rem;
  color: rgba(31,31,30,0.45);
  margin-top: 0.15rem;
}

.au-form__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.au-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: rgba(31,31,30,0.75);
  cursor: pointer;
  user-select: none;
}
.au-checkbox input { display: none; }
.au-checkbox__box {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--gx-gray-light);
  border-radius: 4px;
  background: var(--gx-white);
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}
.au-checkbox input:checked + .au-checkbox__box {
  background: var(--gx-dark);
  border-color: var(--gx-dark);
}
.au-checkbox input:checked + .au-checkbox__box::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 0;
  width: 6px;
  height: 11px;
  border-right: 2px solid var(--gx-lime);
  border-bottom: 2px solid var(--gx-lime);
  transform: rotate(45deg);
}

.au-link {
  color: var(--gx-dark);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.au-link:hover { color: var(--gx-lime-dark); }
.au-link--strong { font-weight: 600; }

.au-form__submit {
  width: 100%;
  margin-top: 0.5rem;
  justify-content: center;
}

.au-divider {
  position: relative;
  text-align: center;
  margin: 0.75rem 0;
}
.au-divider::before {
  content: '';
  position: absolute;
  inset: 50% 0 0;
  border-top: 1px solid var(--gx-gray-light);
}
.au-divider span {
  position: relative;
  padding: 0 0.85rem;
  background: var(--gx-off-white);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(31,31,30,0.4);
}
.au-page__centered-card .au-divider span { background: var(--gx-white); }

.au-social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.au-social__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.75rem;
  background: var(--gx-white);
  border: 1.5px solid var(--gx-gray-light);
  border-radius: 100px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gx-dark);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.au-social__btn:hover {
  border-color: var(--gx-dark);
  background: #fafafa;
}

.au-form__foot {
  text-align: center;
  font-size: 0.875rem;
  color: rgba(31,31,30,0.6);
  margin: 0.5rem 0 0;
}

@media (max-width: 1024px) {
  .au-page__split { grid-template-columns: 1fr; }
  .au-page__visual { display: none; }
  .au-page__form-side { padding: 7rem 1.5rem 4rem; min-height: 100vh; }
}

@media (max-width: 480px) {
  .au-form__grid-2 { grid-template-columns: 1fr; }
  .au-social { grid-template-columns: 1fr; }
  .au-page__centered-card { padding: 1.75rem; }
}
