/* Kirish va ro'yxatdan o'tish (Kirish.png, Royxat.png): chapda tungi ko'k brend paneli diagonal
   chiziqlar bilan, o'ngda oq fonda forma. Telefonda brend paneli tepada qisqa tasma bo'ladi. */
.auth-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  margin: 0;
  background: #FFFFFF;
}

.auth-brand {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 56px 56px 48px;
  box-sizing: border-box;
  overflow: hidden;
  color: #FFFFFF;
  background-color: #020B1A;
  background-image: repeating-linear-gradient(-60deg, #031A22 0 46px, #020B1A 46px 112px);
}

.auth-brand-logo {
  width: 172px;
  max-width: 100%;
  height: auto;
}

.auth-brand-main {
  margin: auto 0;
  padding: 40px 0;
}

.auth-slogan {
  max-width: 520px;
  margin: 0 0 24px;
  font-size: clamp(36px, 4.2vw, 62px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.auth-accent {
  display: block;
  color: #00C782;
}

.auth-lead {
  margin: 0;
  color: rgba(238, 242, 245, 0.78);
  font-size: 16px;
  font-weight: 300;
}

.auth-offer {
  max-width: 560px;
  margin: 0 0 36px;
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 500;
  line-height: 1.3;
}

.auth-steps {
  display: grid;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: auth-step;
}

.auth-steps li {
  position: relative;
  padding-left: 44px;
  counter-increment: auth-step;
}

.auth-steps li::before {
  content: counter(auth-step);
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 199, 130, 0.14);
  color: #00C782;
  font-size: 14px;
  font-weight: 700;
}

.auth-steps b {
  display: block;
  font-size: 16px;
  font-weight: 400;
}

.auth-steps span {
  display: block;
  margin-top: 2px;
  color: rgba(238, 242, 245, 0.62);
  font-size: 13px;
  font-weight: 300;
}

.auth-brand-foot {
  margin: 0;
  color: rgba(238, 242, 245, 0.62);
  font-size: 13px;
  font-weight: 300;
}

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.auth-panel {
  width: min(440px, 100%);
}

.auth-panel h1 {
  margin: 0 0 6px;
  color: #020B1A;
  font-size: 28px;
  font-weight: 700;
}

.auth-sub {
  margin: 0 0 24px;
  color: #5c7189;
  font-size: 14px;
}

.auth-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 24px;
}

.auth-langs a {
  padding: 6px 10px;
  border-radius: 8px;
  color: #5c7189;
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
}

.auth-langs a:hover {
  background: #EEF2F5;
  color: #020B1A;
}

.auth-langs a.is-active {
  background: #CCF4E6;
  color: #00754E;
  font-weight: 700;
}

.auth-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 22px;
}

.auth-progress span {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: #dbe3eb;
}

.auth-progress span.is-done {
  background: #00C782;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form label,
.auth-segment legend {
  display: grid;
  gap: 6px;
  color: #374151;
  font-size: 13px;
  font-weight: 500;
}

.auth-form label small {
  color: #5c7189;
  font-size: 12px;
  font-weight: 400;
}

.auth-form input:not([type="radio"]),
.auth-form select {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #dbe3eb;
  border-radius: 10px;
  background: #FFFFFF;
  color: #020B1A;
  font: inherit;
  font-size: 15px;
  box-sizing: border-box;
}

.auth-form input:focus,
.auth-form select:focus {
  border-color: #00C782;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 199, 130, 0.2);
}

/* Umumiy label:focus-within konturi bu yerda kerak emas: halqa maydonning o'zida. */
.auth-form label:focus-within {
  outline: none;
}

.auth-form select {
  padding-right: 36px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5z' fill='%235c7189'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.auth-code {
  letter-spacing: 0.3em;
  font-size: 18px !important;
}

.auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.auth-segment {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.auth-segment legend {
  margin-bottom: 6px;
  padding: 0;
}

.auth-segment > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border: 1px solid #dbe3eb;
  border-radius: 10px;
}

.auth-segment label {
  position: relative;
  display: block;
}

.auth-segment input[type="radio"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  min-width: 0;
  height: 1px;
  min-height: 0;
  margin: 0;
  opacity: 0;
}

.auth-segment span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 6px;
  border-radius: 7px;
  color: #5c7189;
  font-size: 14px;
  font-weight: 400;
  text-align: center;
  cursor: pointer;
}

.auth-segment input:checked + span {
  background: #CCF4E6;
  color: #00754E;
  font-weight: 700;
}

.auth-segment input:focus-visible + span {
  outline: 2px solid #00C782;
  outline-offset: 1px;
}

.auth-primary,
.auth-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
}

.auth-primary {
  margin-top: 4px;
  padding: 0 16px;
  border: 0;
  box-shadow: none;
  background: #00C782;
  color: #020B1A;
  font-weight: 700;
}

.auth-primary:hover {
  background: #00B676;
  transform: none;
}

.auth-secondary {
  border: 1px solid #dbe3eb;
  background: #FFFFFF;
  color: #020B1A;
  font-weight: 500;
}

.auth-secondary:hover {
  border-color: #00C782;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #5c7189;
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #dbe3eb;
}

.auth-help {
  margin: 18px 0 0;
  color: #5c7189;
  font-size: 13px;
  text-align: center;
}

.auth-help a,
.auth-inline a,
.auth-link-button {
  color: #00754E;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-inline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  font-size: 13px;
}

.auth-link-button {
  min-height: 0;
  box-shadow: none;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.auth-link-button:disabled {
  color: #5c7189;
  text-decoration: none;
  cursor: default;
}

.auth-panel .notice {
  margin: 0 0 16px;
}

/* Tungi mavzu: o'ng panel ham tungi ko'k. */
[data-theme="dark"] .auth-body { background: #0B1628; }
[data-theme="dark"] .auth-panel h1,
[data-theme="dark"] .auth-secondary,
[data-theme="dark"] .auth-form input:not([type="radio"]),
[data-theme="dark"] .auth-form select { color: #FFFFFF; }
[data-theme="dark"] .auth-form label,
[data-theme="dark"] .auth-segment legend { color: #C9D3DE; }
[data-theme="dark"] .auth-form input:not([type="radio"]),
[data-theme="dark"] .auth-secondary { background: #101C33; border-color: #24324A; }
[data-theme="dark"] .auth-form select { background-color: #101C33; border-color: #24324A; }
[data-theme="dark"] .auth-segment > div { border-color: #24324A; }
[data-theme="dark"] .auth-segment input:checked + span,
[data-theme="dark"] .auth-langs a.is-active { background: rgba(0, 199, 130, .16); color: #2FE0A0; }
[data-theme="dark"] .auth-langs a:hover { background: #16243D; color: #FFFFFF; }
[data-theme="dark"] .auth-help a,
[data-theme="dark"] .auth-inline a,
[data-theme="dark"] .auth-link-button { color: #2FE0A0; }
[data-theme="dark"] .auth-progress span { background: #24324A; }
[data-theme="dark"] .auth-progress span.is-done { background: #00C782; }

@media (max-width: 860px) {
  .auth-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .auth-brand {
    position: static;
    height: auto;
    padding: 20px 16px;
    background-image: repeating-linear-gradient(-60deg, #031A22 0 22px, #020B1A 22px 54px);
  }

  .auth-brand-logo {
    width: 128px;
  }

  .auth-brand-main {
    margin: 0;
    padding: 18px 0 0;
  }

  .auth-slogan {
    margin-bottom: 8px;
    font-size: 26px;
  }

  .auth-accent {
    display: inline;
  }

  .auth-offer,
  .auth-lead {
    margin: 0;
    font-size: 14px;
  }

  .auth-steps,
  .auth-brand-foot {
    display: none;
  }

  .auth-main {
    align-items: flex-start;
    padding: 28px 16px 40px;
  }
}

@media (max-width: 420px) {
  .auth-row {
    grid-template-columns: 1fr;
  }
}
