/**
 * /auth, /reg, /pass — split: chap video, o‘ng forma; mobil: video fon
 */
body.auth-reg-page {
  margin: 0 !important;
  min-height: 100vh !important;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 16px !important;
  color: #1a2e2a !important;
  background: #0d1513 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
}

.auth-split {
  position: relative;
  min-height: 100vh;
}

/* Chap: video + CTA (desktop: ustun; mobil: butun ekran fon) */
.auth-split-media {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.auth-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.auth-media-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 56, 46, 0.72) 0%,
    rgba(0, 24, 20, 0.55) 45%,
    rgba(10, 30, 26, 0.65) 100%
  );
  pointer-events: none;
}

.auth-media-cta {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.75rem;
  pointer-events: auto;
}

.auth-media-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.auth-media-text {
  margin: 0 0 1.5rem;
  max-width: 320px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
}

.auth-cta-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.auth-cta-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
  transform: translateY(-1px);
}

.auth-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* O‘ng / mobil: forma */
.auth-split-form {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px 36px;
}

.auth-box {
  position: relative !important;
  width: 100% !important;
  max-width: 440px !important;
  margin: 0 auto !important;
  padding: 28px 26px 26px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.65) !important;
  border-radius: 20px !important;
  box-shadow:
    0 2px 12px rgba(0, 56, 46, 0.08),
    0 24px 56px rgba(0, 0, 0, 0.18) !important;
  text-align: left !important;
}

.auth-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, #00382e 0%, #0a5c4a 100%);
}

.auth-card-head {
  width: 86% !important;
  max-width: 340px !important;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.25rem;
}

.auth-alert {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.auth-alert--err {
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.auth-alert--ok {
  background: rgba(0, 56, 46, 0.08);
  color: #00382e;
  border: 1px solid rgba(0, 56, 46, 0.18);
}

.auth-heading {
  margin: 0 !important;
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: #00382e !important;
  letter-spacing: -0.02em;
  text-align: center;
}

.auth-form-wrap {
  width: 100%;
}

.auth-form {
  margin: 0;
}

/* Inputlar kartochka bo‘ylab 100% emas — tor va markazda */
body.auth-reg-page .auth-form .auth-field,
body.auth-reg-page .auth-form .auth-row,
body.auth-reg-page .auth-form .auth-rules,
body.auth-reg-page .auth-form .footer,
body.auth-reg-page .auth-form-wrap > .footer {
  width: 86% !important;
  max-width: 340px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.auth-reg-page .auth-field > .auth-input {
  width: 100% !important;
}

.auth-field {
  margin-bottom: 1rem;
}

.auth-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(0, 56, 46, 0.75);
  margin-bottom: 6px;
}

/* Oddiy maydonlar */
.auth-input-row {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
}

.auth-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 56, 46, 0.16);
  background: rgba(228, 241, 235, 0.45);
  color: #1a2e2a;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.auth-input:focus {
  border-color: rgba(0, 56, 46, 0.45);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 56, 46, 0.1);
}

/* Parol: bitta ramka, ko‘z input ICHIDA */
.auth-input-row--password {
  border: 1px solid rgba(0, 56, 46, 0.16);
  border-radius: 12px;
  background: rgba(228, 241, 235, 0.45);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.auth-input-row--password:focus-within {
  border-color: rgba(0, 56, 46, 0.45);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 56, 46, 0.1);
}

.auth-input-row--password .auth-input {
  flex: 1;
  min-width: 0;
  width: auto !important;
  border: none !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  padding: 12px 12px 12px 14px;
  padding-right: 48px;
}

.auth-input-row--password .auth-input:focus {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.auth-pw-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #00382e;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s, color 0.15s;
}

.auth-pw-toggle:hover {
  background: rgba(0, 56, 46, 0.06);
  color: #0a5c4a;
}

.auth-pw-toggle:focus-visible {
  outline: 2px solid rgba(0, 56, 46, 0.35);
  outline-offset: 1px;
}

.auth-pw-toggle svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.auth-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0 8px;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(26, 46, 42, 0.85);
  margin: 0;
  cursor: pointer;
}

.auth-remember input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #00382e;
  flex-shrink: 0;
}

.auth-link {
  color: #0a5c4a !important;
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-form button.buttons {
  display: block;
  width: 86% !important;
  max-width: 340px !important;
  margin-left: auto;
  margin-right: auto;
  margin-top: 6px;
  padding: 13px 16px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
  background: linear-gradient(135deg, #00382e 0%, #0a5c4a 100%);
  box-shadow: 0 8px 24px rgba(0, 56, 46, 0.22);
  transition: transform 0.12s, box-shadow 0.2s, filter 0.2s;
}

.auth-form button.buttons:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(0, 56, 46, 0.28);
  filter: saturate(1.05);
}

.auth-form button.buttons:active {
  transform: translateY(0);
}

.auth-box .footer,
.auth-form .footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  margin-top: 18px;
  font-size: 14px;
  color: rgba(26, 46, 42, 0.72);
  font-weight: 600;
  text-align: center;
}

.auth-box .footer a,
.auth-form .footer a {
  color: #00382e !important;
  font-weight: 700;
}

.auth-rules {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 12px;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(26, 46, 42, 0.88);
}

.auth-rules input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: #00382e;
  flex-shrink: 0;
}

.auth-rules a {
  color: #0a5c4a !important;
  font-weight: 700;
}

.auth-sms-hint {
  font-size: 14px;
  color: rgba(0, 56, 46, 0.65);
  margin-bottom: 10px;
  width: 86% !important;
  max-width: 340px !important;
  margin-left: auto;
  margin-right: auto;
}

.auth-sms-hint label {
  cursor: pointer;
  font-weight: 600;
  color: #b91c1c;
}

/* Desktop: ikki ustun */
@media (min-width: 900px) {
  .auth-split-media {
    position: relative;
    inset: auto;
    width: 50%;
    flex-shrink: 0;
    min-height: 100vh;
    pointer-events: auto;
  }

  .auth-split {
    display: flex;
    flex-direction: row;
    align-items: stretch;
  }

  .auth-media-cta {
    display: flex;
  }

  .auth-split-form {
    width: 50%;
    flex-shrink: 0;
    min-height: 100vh;
    padding: 40px 32px;
    background: #ffffff !important;
  }

  .auth-box {
    background: #ffffff !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(0, 56, 46, 0.1) !important;
    box-shadow:
      0 2px 12px rgba(0, 56, 46, 0.06),
      0 20px 48px rgba(0, 56, 46, 0.08) !important;
  }
}

@media (max-width: 899px) {
  .auth-media-cta {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .auth-box {
    padding: 22px 18px 20px !important;
  }

  .auth-heading {
    font-size: 1.2rem !important;
  }

  body.auth-reg-page .auth-form .auth-field,
  body.auth-reg-page .auth-form .auth-row,
  body.auth-reg-page .auth-form .auth-rules,
  body.auth-reg-page .auth-form button.buttons,
  body.auth-reg-page .auth-form .footer,
  body.auth-reg-page .auth-form-wrap > .footer,
  body.auth-reg-page .auth-card-head,
  body.auth-reg-page .auth-sms-hint {
    width: 90% !important;
    max-width: 320px !important;
  }
}
