/* ================================================================
   Kirish / ro'yxatdan o'tish — qo'nish sahifasi uslubida.
   Tokenlar, tugmalar, .icon-btn, .pv-notif, .hv-arc va kirish
   animatsiyalari (lxBlur, lxPanel, lxArc, lxPop) css/landing.css'dan keladi.
   ================================================================ */

.auth-lx { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }

/* ---------- yuqori qator ---------- */
.auth-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: var(--nav-h);
  animation: lxNav 0.9s var(--ease-out) both;
}
.auth-top-actions { display: flex; align-items: center; gap: 8px; }

/* ---------- asosiy maket ---------- */
.auth-wrap {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: 28px;
  align-items: stretch;
  padding-top: 12px; padding-bottom: 40px;
}

/* ---------- chap: indigo banner ---------- */
.auth-hero {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  padding: 48px 44px 150px;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(150, 175, 255, 0.4), transparent 55%),
    linear-gradient(135deg, #3d50e8 0%, #4a5ef2 55%, #6a7cf8 120%);
  box-shadow: 0 30px 60px -32px rgba(60, 80, 230, 0.65);
  animation: lxPanel 1.2s var(--ease-out) both 0.2s;
  transform-origin: 50% 100%;
}
.auth-hero > *:not(.hv-glow):not(.ah-notif) { position: relative; }
.auth-hero .hv-arc { top: calc(100% - 120px); }

.ah-eyebrow {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  animation: lxBlur 0.9s var(--ease-out) both 0.5s;
}
.ah-eyebrow .live { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.25); }

.ah-title {
  margin: 22px 0 0;
  font-family: var(--hf); font-weight: 800;
  font-size: clamp(32px, 2.4vw + 14px, 50px); line-height: 1.06; letter-spacing: -1.4px;
  color: #fff; text-wrap: balance;
}
.ah-title > * { display: inline-block; animation: lxBlur 1s var(--ease-out) both; }
.ah-title > :nth-child(1) { animation-delay: 0.6s; }
.ah-title > :nth-child(2) { animation-delay: 0.7s; }
.ah-title > :nth-child(3) { animation-delay: 0.8s; }
.ah-title > :nth-child(4) { animation-delay: 0.9s; }
.ah-title em {
  font-style: normal;
  background: linear-gradient(135deg, #ffffff 35%, #dde2ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.ah-list { margin: 30px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; max-width: 440px; }
.ah-list li { display: flex; align-items: flex-start; gap: 14px; animation: lxBlur 0.9s var(--ease-out) both; }
.ah-list li:nth-child(1) { animation-delay: 1.05s; }
.ah-list li:nth-child(2) { animation-delay: 1.15s; }
.ah-list li:nth-child(3) { animation-delay: 1.25s; }
.ah-ic {
  width: 40px; height: 40px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 16px;
}
.ah-list b { display: block; font-family: var(--hf); font-size: 16px; font-weight: 700; }
.ah-list small { color: rgba(255, 255, 255, 0.78); font-size: 13.5px; line-height: 1.45; }

.ah-notif { left: auto; right: 28px; bottom: 28px; }

/* ---------- o'ng: forma kartasi ---------- */
.auth-main { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.auth-card {
  position: relative;
  padding: 26px 28px 24px;
  background: var(--glass);
  border: 1px solid var(--glass-b);
  border-radius: 22px;
  box-shadow: var(--sh-lg);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  animation: lxBlur 1s var(--ease-out) both 0.35s;
}

/* rol tablari — segmentli pill */
.role-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  padding: 4px; margin-bottom: 24px;
  border-radius: 16px; background: var(--acc-soft);
}
.role-tab {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border: 0; border-radius: 12px;
  background: transparent; color: var(--mut);
  font: inherit; text-align: left; cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.role-tab > i {
  width: 34px; height: 34px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; font-size: 14px;
  background: color-mix(in srgb, var(--acc) 10%, transparent); color: var(--acc-ink);
  transition: background 0.25s, color 0.25s;
}
.role-tab strong { display: block; font-family: var(--hf); font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.role-tab span { font-size: 12px; }
.role-tab:hover:not(.active) { color: var(--ink); }
.role-tab.active { background: var(--solid); box-shadow: var(--sh); }
.role-tab.active > i { background: var(--btn-grad); color: #fff; box-shadow: var(--sh-acc); }

/* formalar */
.auth-form { display: none; }
.auth-form.active { display: block; animation: lxBlur 0.6s var(--ease-out) both; }
.auth-card h2, .auth-card h3 {
  margin: 0 0 6px; font-family: var(--hf); color: var(--ink);
  font-size: 24px; font-weight: 800; letter-spacing: -0.5px;
}
.auth-card h3 { font-size: 21px; }
.auth-sub { margin: 0 0 20px; color: var(--mut); font-size: 14.5px; line-height: 1.55; }

.form-group { margin-bottom: 14px; }
.form-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--text); }

.auth-input {
  position: relative; display: flex; align-items: center;
  min-height: 50px;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--solid);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-input:focus-within { border-color: var(--acc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 16%, transparent); }
.auth-input > i { width: 46px; flex-shrink: 0; text-align: center; color: var(--dim); font-size: 15px; transition: color 0.2s; }
.auth-input:focus-within > i { color: var(--acc); }
.auth-input input {
  flex: 1; min-width: 0; height: 48px; padding: 0 14px 0 0;
  border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 15px; color: var(--ink);
}
.auth-input input::placeholder { color: var(--dim); }
.auth-input input:-webkit-autofill { -webkit-text-fill-color: var(--ink); box-shadow: 0 0 0 40px var(--solid) inset; }
.eye-btn {
  width: 44px; height: 44px; flex-shrink: 0; margin-right: 3px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 10px; background: transparent; color: var(--dim); cursor: pointer;
}
.eye-btn:hover { color: var(--acc-ink); background: var(--acc-soft); }

.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 18px; flex-wrap: wrap; }
.check-row { display: inline-flex; align-items: center; gap: 8px; color: var(--mut); font-size: 13.5px; cursor: pointer; }
.check-row input { width: 17px; height: 17px; accent-color: var(--acc); }
.forgot-link { color: var(--acc-ink); font-size: 13.5px; font-weight: 600; }
.forgot-link:hover { text-decoration: underline; }

.btn-lg { min-height: 52px; padding: 12px 22px; font-size: 15px; }
.btn-google { background: var(--solid); color: var(--ink); border-color: var(--line); }
.btn-google:hover { border-color: var(--acc); }
.auth-card .btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: translateX(-160%) skewX(-20deg);
}
.auth-card .btn-primary:hover::after { animation: lxSheen 0.9s ease; }

.auth-divider { position: relative; display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--dim); font-size: 12.5px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.auth-foot { margin: 18px 0 0; text-align: center; color: var(--mut); font-size: 14px; }
.auth-foot a { color: var(--acc-ink); font-weight: 700; }
.auth-foot a:hover { text-decoration: underline; }

/* Telegram kod katakchalari */
.otp-cells { display: flex; gap: 10px; margin-top: 14px; }
.otp-cell {
  flex: 1; min-width: 0; height: 58px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--solid);
  text-align: center; font-family: var(--hf); font-size: 24px; font-weight: 700; color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.otp-cell:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 16%, transparent); }
.otp-cell.filled { border-color: color-mix(in srgb, var(--acc) 55%, transparent); background: var(--acc-soft); transform: translateY(-1px); }
#verifyBotLink, #forgotBotLink { margin-top: 4px; }

/* ---------- moslashuvchan ---------- */
@media (max-width: 960px) {
  .auth-wrap { grid-template-columns: minmax(0, 1fr); max-width: 560px; gap: 16px; }
  .auth-hero { padding: 26px 24px 30px; overflow: hidden; }
  .auth-hero .hv-glow, .ah-list, .ah-notif { display: none; }
  .ah-title { margin-top: 14px; font-size: clamp(26px, 5vw + 8px, 34px); }
}
@media (max-width: 560px) {
  .auth-top .back-home span { display: none; }
  .auth-top .back-home { width: 40px; padding: 0; }
  .auth-wrap { padding-top: 4px; }
  .auth-hero { padding: 22px 20px 24px; border-radius: 20px; }
  .ah-eyebrow { font-size: 12px; }
  .auth-card { padding: 20px 16px 18px; border-radius: 20px; }
  .role-tab { padding: 8px; gap: 8px; }
  .role-tab > i { width: 30px; height: 30px; font-size: 13px; }
  .role-tab strong { font-size: 13.5px; }
  .otp-cells { gap: 8px; }
  .otp-cell { height: 52px; font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-form.active { animation: none; }
}
