/* AANYA Auth — distinct twilight + coral theme (separate from marketing home) */

:root {
  --auth-bg: #070b14;
  --auth-bg-accent: #121a2e;
  --auth-violet: #8b5cf6;
  --auth-coral: #fb7185;
  --auth-teal: #2dd4bf;
  --auth-panel: #ffffff;
  --auth-panel-soft: #f8fafc;
  --auth-text: #0f172a;
  --auth-muted: #64748b;
  --auth-border: #e2e8f0;
  --auth-input-bg: #ffffff;
  --auth-radius: 20px;
  --auth-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

body.page-auth {
  background: var(--auth-bg);
}

body.page-auth > .container > .alert-success {
  position: relative;
  z-index: 10;
  margin-top: 100px;
  border-radius: 12px;
}

body.page-auth .footer {
  margin-top: 0;
}

.auth-experience {
  position: relative;
  min-height: calc(100vh - 110px);
  padding: 130px 0 80px;
  overflow: hidden;
}

.auth-experience__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(139, 92, 246, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 80%, rgba(251, 113, 133, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(45, 212, 191, 0.12) 0%, transparent 45%),
    linear-gradient(165deg, var(--auth-bg) 0%, var(--auth-bg-accent) 48%, #0d1220 100%);
}

.auth-experience__mesh::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.35;
}

.auth-experience__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.auth-experience__intro {
  padding-right: 24px;
  padding-top: 8px;
}

.auth-experience__form {
  padding-top: 8px;
}

.auth-intro__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--auth-teal);
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.25);
  margin-bottom: 20px;
}

.auth-intro__badge i {
  font-size: 11px;
}

.auth-intro__title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  color: #ffffff !important;
  margin-bottom: 16px;
}

.auth-intro__title span {
  background: linear-gradient(120deg, var(--auth-coral), var(--auth-violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-intro__lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 32px;
  max-width: 420px;
}

.auth-intro__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-intro__features li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
}

.auth-intro__features li i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--auth-violet);
  background: rgba(139, 92, 246, 0.15);
  flex-shrink: 0;
}

/* Form panel — light surface for readable fields */
.auth-panel {
  background: var(--auth-panel);
  border-radius: var(--auth-radius);
  box-shadow: var(--auth-shadow);
  padding: 40px 36px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-phone-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.auth-country-wrap {
  flex: 0 0 42%;
  min-width: 0;
}

.auth-phone-wrap {
  flex: 1;
  min-width: 0;
}

.auth-country-select {
  cursor: pointer;
  appearance: none;
  background-color: var(--auth-input-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  font-size: 14px;
}

.auth-country-select option {
  background: #fff;
  color: var(--auth-text);
}

.auth-field-hint {
  font-size: 12px;
  color: var(--auth-muted);
  margin: 8px 0 0;
  line-height: 1.4;
}

.auth-panel--wide {
  max-width: 520px;
}

.auth-panel__mobile-title {
  display: none;
}

.auth-panel__head {
  margin-bottom: 28px;
}

.auth-panel__label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--auth-violet);
  margin-bottom: 8px;
}

.auth-panel__title,
.auth-panel__mobile-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--auth-text) !important;
  margin: 0 0 8px;
  line-height: 1.25;
}

.auth-panel__desc {
  font-size: 15px;
  color: var(--auth-muted);
  margin: 0;
  line-height: 1.5;
}

body.page-auth .auth-form .form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--auth-text) !important;
  margin-bottom: 8px;
}

body.page-auth .auth-form .form-control {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  padding-top: 12px;
  font-size: 15px;
  color: var(--auth-text);
  background: var(--auth-input-bg);
  border: 1.5px solid var(--auth-border);
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

body.page-auth .auth-form .form-control::placeholder {
  color: #94a3b8;
}

body.page-auth .auth-form .form-control:hover {
  border-color: #cbd5e1;
}

body.page-auth .auth-form .form-control:focus {
  outline: none;
  border-color: var(--auth-violet);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
  background: #fff;
  color: var(--auth-text);
}

body.page-auth .auth-form select.form-control {
  padding-top: 12px;
}

body.page-auth .auth-form .form-check {
  padding-left: 1.75rem;
}

.auth-form .form-check-input {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  border: 1.5px solid var(--auth-border);
  background: #fff;
}

.auth-form .form-check-input:checked {
  background-color: var(--auth-violet);
  border-color: var(--auth-violet);
}

.auth-form .form-check-label {
  font-size: 14px;
  color: var(--auth-muted);
}

.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 0 24px;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--auth-coral) 0%, var(--auth-violet) 100%);
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(139, 92, 246, 0.45);
  color: #fff;
}

.auth-btn:active {
  transform: translateY(0);
}

.auth-panel__footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--auth-border);
  text-align: center;
  font-size: 14px;
  color: var(--auth-muted);
}

.auth-panel__footer a {
  color: var(--auth-violet);
  font-weight: 600;
  text-decoration: none;
}

.auth-panel__footer a:hover {
  color: var(--auth-coral);
}

.auth-error {
  font-size: 13px;
  color: #dc2626;
  margin-top: 6px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--auth-muted);
  font-size: 13px;
}

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

@media (max-width: 991.98px) {
  .auth-experience {
    padding: 110px 0 60px;
  }

  .auth-experience__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 480px;
  }

  .auth-phone-row {
    flex-direction: column;
  }

  .auth-country-wrap,
  .auth-phone-wrap {
    flex: 1 1 auto;
    width: 100%;
  }

  .auth-experience__intro {
    display: none;
  }

  .auth-panel__mobile-title {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--auth-text) !important;
    margin-bottom: 4px;
  }

  .auth-panel {
    padding: 32px 24px;
  }
}

@media (max-width: 575.98px) {
  .auth-experience {
    padding-top: 100px;
  }

  .auth-panel {
    border-radius: 16px;
    padding: 28px 20px;
  }
}
