
/* =========================================================
   A2TDEV Authentication UX
   Clean, premium auth pages for django-allauth.
   ========================================================= */

/* Stop the old auth.css from shrinking the whole site content */
.x-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: auto !important;
}

.a2t-auth-page {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 72px 0 104px;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
}

.a2t-auth-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 34px;
  align-items: stretch;
}

.a2t-auth-brand-panel,
.a2t-auth-card {
  border: 1px solid var(--a2t-line, #e8ebf1);
  border-radius: 30px;
  background: var(--a2t-surface, #fff);
  box-shadow: 0 24px 80px rgba(8,12,24,.08);
}

.a2t-auth-brand-panel {
  padding: 36px;
  background:
    radial-gradient(circle at 20% 15%, rgba(53,103,255,.16), transparent 28%),
    radial-gradient(circle at 90% 85%, rgba(118,87,255,.12), transparent 28%),
    #050507;
  color: #fff;
  overflow: hidden;
  position: relative;
}

.a2t-auth-brand-panel::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border: 1px dashed rgba(255,255,255,.15);
  border-radius: 50%;
  right: -120px;
  bottom: -110px;
}

.a2t-auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: -.055em;
  margin-bottom: 58px;
}

.a2t-auth-logo span {
  color: #7ca0ff;
}

.a2t-auth-brand-panel h1 {
  font-size: clamp(38px, 4.8vw, 62px);
  line-height: .98;
  letter-spacing: -.065em;
  margin: 0 0 18px;
  color: #fff;
}

.a2t-auth-brand-panel p {
  color: #cbd5e1;
  line-height: 1.7;
  font-size: 17px;
  margin: 0;
  max-width: 460px;
}

.a2t-auth-points {
  display: grid;
  gap: 12px;
  margin-top: 34px;
  position: relative;
  z-index: 1;
}

.a2t-auth-point {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #e5e7eb;
}

.a2t-auth-point span {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  color: #fff;
  font-weight: 900;
}

.a2t-auth-card {
  padding: clamp(26px, 4vw, 42px);
}

.a2t-auth-kicker {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--a2t-line, #e8ebf1);
  border-radius: 999px;
  background: var(--a2t-soft, #f7f8fb);
  color: var(--a2t-blue, #3567ff);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.a2t-auth-card h1,
.a2t-auth-card h2 {
  margin: 22px 0 10px;
  color: var(--a2t-text, #07070b);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -.06em;
  font-weight: 950;
}

.a2t-auth-subtitle {
  color: var(--a2t-muted, #58657a);
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 26px;
}

.a2t-auth-card form {
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.a2t-auth-card form p {
  margin: 0 0 16px;
}

.a2t-auth-card label {
  display: block;
  margin: 0 0 8px !important;
  color: var(--a2t-text, #07070b) !important;
  font-weight: 850 !important;
}

.a2t-auth-card input[type="email"],
.a2t-auth-card input[type="text"],
.a2t-auth-card input[type="password"],
.a2t-auth-card input[type="url"],
.a2t-auth-card input[type="number"] {
  width: 100% !important;
  min-height: 54px !important;
  border: 1px solid var(--a2t-line, #e8ebf1) !important;
  border-radius: 15px !important;
  background: var(--a2t-surface, #fff) !important;
  color: var(--a2t-text, #07070b) !important;
  padding: 12px 16px !important;
  font: inherit !important;
  margin: 0 !important;
}

.a2t-auth-card input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  margin-right: 8px !important;
  accent-color: var(--a2t-blue, #3567ff);
}

.a2t-auth-card input:focus {
  outline: 3px solid rgba(53,103,255,.18);
  border-color: var(--a2t-blue, #3567ff) !important;
}

.a2t-auth-actions {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.a2t-auth-card button,
.a2t-auth-card input[type="submit"],
.a2t-auth-primary {
  width: 100% !important;
  min-height: 52px !important;
  border: 1px solid #050507 !important;
  border-radius: 14px !important;
  background: #050507 !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  cursor: pointer;
  margin: 0 !important;
}

.a2t-auth-secondary {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--a2t-line, #e8ebf1);
  border-radius: 14px;
  background: var(--a2t-surface, #fff);
  color: var(--a2t-text, #07070b);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 850;
  text-decoration: none;
}

.a2t-auth-card button.a2t-auth-secondary {
  border: 1px solid var(--a2t-line, #e8ebf1) !important;
  background: var(--a2t-surface, #fff) !important;
  color: var(--a2t-text, #07070b) !important;
}

.a2t-auth-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  color: var(--a2t-muted, #58657a);
}

.a2t-auth-links a,
.a2t-auth-card a {
  color: var(--a2t-blue, #3567ff);
  text-decoration: none;
  font-weight: 750;
}

.a2t-auth-links a:hover,
.a2t-auth-card a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.a2t-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--a2t-muted, #58657a);
  margin: 24px 0;
  font-weight: 700;
}

.a2t-auth-divider::before,
.a2t-auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--a2t-line, #e8ebf1);
}

.a2t-auth-help {
  border: 1px solid var(--a2t-line, #e8ebf1);
  border-radius: 18px;
  background: var(--a2t-soft, #f7f8fb);
  padding: 16px;
  color: var(--a2t-muted, #58657a);
  line-height: 1.6;
  margin-top: 22px;
}

.a2t-auth-errors,
.a2t-auth-card .errorlist {
  list-style: none;
  padding: 14px 16px !important;
  margin: 0 0 18px !important;
  border-radius: 16px;
  border: 1px solid rgba(220,38,38,.22);
  background: rgba(220,38,38,.08);
  color: #b91c1c;
}

.a2t-auth-card .helptext {
  display: block;
  margin-top: 7px;
  color: var(--a2t-muted, #58657a);
  font-size: 13px;
}

.a2t-auth-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.a2t-auth-mini {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255,255,255,.06);
}

.a2t-auth-mini strong {
  display: block;
  font-size: 24px;
  color: #fff;
  letter-spacing: -.04em;
}

.a2t-auth-mini span {
  display: block;
  color: #cbd5e1;
  font-size: 13px;
  margin-top: 4px;
}

@media (max-width: 980px) {
  .a2t-auth-layout {
    grid-template-columns: 1fr;
  }

  .a2t-auth-brand-panel {
    min-height: auto;
  }

  .a2t-auth-logo {
    margin-bottom: 28px;
  }
}

@media (max-width: 700px) {
  .a2t-auth-page {
    width: min(100% - 28px, 1180px);
    padding: 48px 0 74px;
  }

  .a2t-auth-brand-panel,
  .a2t-auth-card {
    border-radius: 24px;
    padding: 24px;
  }

  .a2t-auth-mini-grid {
    grid-template-columns: 1fr;
  }

  .a2t-auth-links {
    display: grid;
  }
}


/* Social authentication options */
.a2t-social-auth {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.a2t-social-auth.two {
  grid-template-columns: repeat(2, 1fr);
}

.a2t-social-btn {
  min-height: 52px;
  border: 1px solid var(--a2t-line, #e8ebf1);
  border-radius: 15px;
  background: var(--a2t-surface, #fff);
  color: var(--a2t-text, #07070b);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(8,12,24,.035);
}

.a2t-social-btn:hover {
  color: var(--a2t-text, #07070b);
  text-decoration: none !important;
  transform: translateY(-1px);
}

.a2t-social-btn.google i {
  color: #ea4335;
}

.a2t-social-btn.x-twitter i {
  color: #050507;
}

.a2t-auth-brand-social {
  position: relative;
  z-index: 2;
  margin-top: 34px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  border-radius: 22px;
}

.a2t-auth-brand-social h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -.045em;
}

.a2t-auth-brand-social p {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 16px;
}

.a2t-auth-brand-social .a2t-social-auth {
  margin: 0;
}

.a2t-auth-brand-social .a2t-social-btn {
  background: #fff;
  border-color: rgba(255,255,255,.18);
  color: #050507;
}

.a2t-provider-note {
  color: var(--a2t-muted, #58657a);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 10px;
}

@media (max-width: 700px) {
  .a2t-social-auth.two {
    grid-template-columns: 1fr;
  }
}


/* Safe social auth fallback */
.a2t-social-disabled {
  min-height: 52px;
  border: 1px dashed var(--a2t-line, #e8ebf1);
  border-radius: 15px;
  background: var(--a2t-soft, #f7f8fb);
  color: var(--a2t-muted, #58657a);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  text-align: center;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
  grid-column: 1 / -1;
}

.a2t-auth-brand-social .a2t-social-disabled {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
  color: #cbd5e1;
}


/* Allauth fallback elements inside A2TDEV auth card */
.a2t-auth-card ul,
.a2t-auth-card ol {
  padding-left: 1.2em;
  color: var(--a2t-muted, #58657a);
  line-height: 1.65;
}

.a2t-auth-card [role="alert"],
.a2t-auth-card .alert {
  border: 1px solid rgba(220,38,38,.22);
  background: rgba(220,38,38,.08);
  color: #b91c1c;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.a2t-auth-card .button,
.a2t-auth-card button[type="submit"] {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
}
