/* ============================================================
   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-field__hint--error {
  color: #b91c1c;
  font-weight: 500;
}

.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/transfers/hero-bg.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/transfers/fleet-business.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; }
}

/* OAuth providers */
.au-social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.au-social__btn--google::before,
.au-social__btn--apple::before {
  content: '';
  width: 18px;
  height: 18px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.au-social__btn--google::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%234285F4' d='M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z'/%3E%3Cpath fill='%2334A853' d='M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z'/%3E%3Cpath fill='%23FBBC05' d='M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z'/%3E%3Cpath fill='%23EA4335' d='M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z'/%3E%3C/svg%3E");
}

.au-social__btn--apple::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M17.05 20.28c-.98.95-2.05.8-3.08.35-1.09-.46-2.09-.48-3.24 0-1.44.62-2.2.44-3.06-.35C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.8 1.18-.24 2.31-.93 3.57-.84 1.51.12 2.65.72 3.4 1.8-3.12 1.87-2.38 5.98.48 7.13-.57 1.5-1.31 2.99-2.54 4.09zM12.03 7.25c-.15-2.23 1.66-4.07 3.74-4.25.29 2.58-2.34 4.5-3.74 4.25z'/%3E%3C/svg%3E");
}

.au-social__btn--disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: auto;
}

.au-social__btn--disabled:hover {
  border-color: var(--gx-gray-light);
  background: var(--gx-white);
}

.au-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0;
  color: rgba(31,31,30,0.45);
  font-size: 0.8125rem;
}

.au-divider::before,
.au-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(31,31,30,0.12);
}

.au-gdpr-note {
  font-size: 0.8125rem;
  color: rgba(31,31,30,0.55);
  line-height: 1.5;
  margin: 0.5rem 0 0;
}

/* Cookie consent banner */
.ck-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  max-width: 42rem;
  margin: 0 auto;
  z-index: 10000;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid rgba(31,31,30,0.1);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.ck-banner__text strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--gx-font-display);
}

.ck-banner__text p {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(31,31,30,0.7);
  line-height: 1.5;
}

.ck-banner__text a {
  color: inherit;
  text-decoration: underline;
}

.ck-banner__actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .ck-banner { flex-direction: column; align-items: stretch; }
  .ck-banner__actions { flex-direction: column; }
}
