/* AvtoTarix — auth sahifalari (login, register) umumiy qobig'i.
   site.css tokenlariga tayanadi. Intro panel — asfalt, forma — oq karta. */

body.auth-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 40px;
}

.auth-top {
  width: min(100%, 1020px);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.auth-shell {
  width: min(100%, 1020px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  gap: 20px;
  align-items: stretch;
}

/* Intro — asfalt panel */
.auth-intro {
  position: relative;
  background:
    radial-gradient(480px circle at 90% -10%, rgba(22, 163, 74, 0.3), transparent 55%),
    linear-gradient(150deg, var(--bg-deep) 0%, var(--bg-deep-2) 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 38px 36px 46px;
  display: grid;
  gap: 20px;
  align-content: start;
  overflow: hidden;
}
.auth-intro::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  height: 5px;
  background: repeating-linear-gradient(90deg, rgba(255, 196, 46, 0.8) 0 28px, transparent 28px 48px);
}
.auth-intro .eyebrow { color: #ffd45e; }
.auth-intro h1 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-top: 12px;
}
.auth-intro .muted { color: rgba(255, 255, 255, 0.72); line-height: 1.7; }

.auth-points { display: grid; gap: 10px; margin-top: 4px; }
.auth-point {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.auth-point strong { display: block; margin-bottom: 3px; font-size: 0.98rem; font-weight: 700; color: #fff; }
.auth-point .muted { font-size: 0.88rem; }

/* Forma paneli */
.auth-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 32px 30px;
  display: grid;
  gap: 14px;
  align-content: start;
}
.auth-panel h2 {
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.auth-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.auth-form-group { display: grid; gap: 6px; }
.auth-form-group.full { grid-column: 1 / -1; }
.auth-form-group label { font-size: 0.9rem; font-weight: 600; }
.auth-form-group input,
.auth-form-group select {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text);
  font-size: 0.98rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.auth-form-group input:focus,
.auth-form-group select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.14);
}

.auth-submit {
  width: 100%;
  padding: 15px 18px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--brand-deep);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  box-shadow: 0 12px 26px -8px rgba(15, 138, 63, 0.55);
  margin-top: 4px;
}
.auth-submit:hover { background: var(--brand-dark); }
.auth-submit:active { transform: translateY(1px); }
.auth-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.auth-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.auth-secondary:hover { border-color: var(--text-soft); box-shadow: var(--shadow-sm); }

.auth-notice {
  display: none;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  line-height: 1.6;
}
.auth-notice.show { display: block; }
.auth-notice.error {
  background: rgba(214, 69, 69, 0.08);
  border: 1px solid rgba(214, 69, 69, 0.2);
  color: var(--danger);
}
.auth-notice.success {
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.2);
  color: var(--brand-dark);
}

.auth-tiny { color: var(--muted); font-size: 0.88rem; line-height: 1.6; }
.auth-tiny a { color: var(--brand-dark); font-weight: 700; text-decoration: none; }
.auth-tiny a:hover { text-decoration: underline; }

@media (max-width: 880px) {
  .auth-shell { grid-template-columns: 1fr; }
  /* Mobil: forma birinchi — birinchi martalik foydalanuvchi marketing matnidan
     o'tib yurmasin */
  .auth-intro { order: 2; padding: 28px 24px 40px; }
  .auth-panel { order: 1; padding: 26px 22px; }
  .auth-form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .auth-top .lang-switcher-menu {
    left: 0;
    right: 0;
    min-width: 0;
  }
}
