:root{
  --auth-ink:#002830;
  --auth-muted:#6f8b92;
  --auth-cyan:#00e0ef;
  --auth-cyan-dark:#00b8c6;
  --auth-green:#00c7d6;
  --auth-yellow:#7ff7ff;
  --auth-danger:#d92d20;
  --auth-success:#0b9d6a;
  --auth-line:#dfeaec;
  --auth-soft:#eafcff;
  --auth-white:#ffffff;
  --auth-shadow:0 24px 70px rgba(2,51,60,.10);
}

*{box-sizing:border-box}
html{min-width:320px;background:#fff}
body.auth-flow-body{
  margin:0;
  min-height:100vh;
  color:var(--auth-ink);
  font-family:"Baloo 2",Arial,sans-serif;
  background:#fff;
}
button,input{font:inherit}
a{color:inherit}

.auth-skip{
  position:fixed;
  left:16px;
  top:-80px;
  z-index:50;
  padding:10px 14px;
  border-radius:12px;
  background:#fff;
  color:var(--auth-ink);
  font-weight:800;
  box-shadow:var(--auth-shadow);
}
.auth-skip:focus{top:16px}

.auth-header,
.auth-page-footer{display:none}

.auth-main{
  min-height:100vh;
  display:grid;
  place-items:center;
  /* Top space for floating lang/theme controls so they don't sit on the card */
  padding:88px 16px 28px;
}

.auth-layout{
  width:min(100%,560px);
}

.auth-info{display:none}

.auth-panel{width:100%}

.auth-card{
  position:relative;
  width:100%;
  overflow:hidden;
  padding:26px;
  border:1px solid #edf3f4;
  border-radius:30px;
  background:#fff;
  box-shadow:var(--auth-shadow);
}

.auth-card::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:5px;
  background:linear-gradient(90deg,var(--auth-cyan),var(--auth-cyan-dark),var(--auth-ink));
}

.auth-card::after{
  content:"";
  position:absolute;
  top:-120px;
  right:-120px;
  width:220px;
  height:220px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(6,199,220,.13),rgba(6,199,220,0) 70%);
  pointer-events:none;
}

.auth-card-badge{
  position:relative;
  z-index:1;
  display:inline-flex;
  align-items:center;
  gap:8px;
  width:max-content;
  padding:8px 13px;
  border-radius:999px;
  background:#e8fbff;
  color:#006f80;
  font-size:.74rem;
  font-weight:900;
  letter-spacing:.02em;
  text-transform:uppercase;
}

.auth-card-badge .icon{
  display:grid;
  place-items:center;
  width:22px;
  height:22px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 7px 18px rgba(2,51,60,.08);
}

.auth-back-link{
  position:relative;
  z-index:1;
  display:inline-flex;
  align-items:center;
  gap:7px;
  margin-bottom:10px;
  color:#6f8a90;
  text-decoration:none;
  font-size:.82rem;
  font-weight:800;
}
.auth-back-link:hover{color:var(--auth-cyan-dark)}

.auth-card h2{
  position:relative;
  z-index:1;
  margin:16px 0 6px;
  font-size:1.92rem;
  line-height:1.03;
  letter-spacing:-.04em;
}

.auth-card-lead{
  position:relative;
  z-index:1;
  margin:0 0 18px;
  color:var(--auth-muted);
  font-size:.94rem;
  line-height:1.45;
  font-weight:700;
}

.auth-form{
  position:relative;
  z-index:1;
  display:grid;
  gap:12px;
}

.auth-field{display:grid;gap:6px}
.auth-field label{
  color:var(--auth-ink);
  font-size:.92rem;
  font-weight:900;
}
.auth-field-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.auth-field-hint{
  color:#7f989d;
  font-size:.74rem;
  font-weight:800;
}

.auth-input-wrap{
  position:relative;
  display:flex;
  align-items:center;
  min-height:62px;
  padding:0 12px;
  border:1px solid #dfe7e9;
  border-radius:13px;
  background:#fff;
  box-shadow:0 11px 28px rgba(2,51,60,.04);
  transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease;
}

.auth-input-wrap:focus-within{
  border-color:rgba(6,199,220,.75);
  box-shadow:0 0 0 5px rgba(6,199,220,.11),0 16px 34px rgba(2,51,60,.07);
  transform:translateY(-1px);
}

.auth-input-icon{
  display:grid;
  place-items:center;
  flex:0 0 38px;
  width:38px;
  height:38px;
  margin-right:10px;
  border-radius:12px;
  background:#ddf8fc;
  color:#04788a;
}

.auth-input-icon svg{
  width:19px;
  height:19px;
  fill:none; /* kontur ikonkalar — to‘ldirilgan kvadrat bo‘lib ko‘rinmasin */
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.auth-input{
  width:100%;
  min-width:0;
  border:0;
  outline:0;
  background:transparent;
  color:var(--auth-ink);
  font-size:.96rem;
  font-weight:900;
}
.auth-input::placeholder{color:#9ab0b4;font-weight:800}

.auth-password-toggle{
  display:grid;
  place-items:center;
  flex:0 0 40px;
  width:40px;
  height:40px;
  border:0;
  border-radius:13px;
  background:#f2f6f7;
  color:#66858c;
  cursor:pointer;
  transition:.2s ease;
}
.auth-password-toggle:hover,
.auth-password-toggle.is-visible{
  background:#def8fc;
  color:#04788a;
}
.auth-password-toggle svg{
  width:18px;
  height:18px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.auth-inline-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.auth-row-end{justify-content:flex-end}
.auth-link{
  color:#007985;
  text-decoration:none;
  font-weight:900;
}
.auth-link:hover{text-decoration:underline}

.auth-button{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:100%;
  min-height:56px;
  padding:0 18px;
  border:0;
  border-radius:18px;
  background:linear-gradient(100deg,#00e0ef 0%,#00c7d6 58%,#009cad 100%);
  color:#06323a;
  text-decoration:none;
  font-size:.96rem;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 18px 32px rgba(6,199,220,.22);
  transition:transform .2s ease,box-shadow .2s ease,filter .2s ease;
}
.auth-button:hover{
  transform:translateY(-2px);
  box-shadow:0 23px 38px rgba(6,199,220,.28);
}
.auth-button:active{transform:translateY(0)}
.auth-button:disabled{opacity:.7;cursor:not-allowed;transform:none}
.auth-button-spinner{
  display:none;
  width:18px;
  height:18px;
  border:2px solid rgba(6,50,58,.25);
  border-top-color:#06323a;
  border-radius:50%;
  animation:spin .7s linear infinite;
}
.auth-button.is-loading .auth-button-spinner{display:inline-block}
.auth-button.is-loading .auth-button-icon{display:none}

.auth-mini-note,
.auth-demo-note,
.auth-sub-note{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:16px;
  padding:11px 13px;
  border-radius:16px;
  background:#e8fbff;
  color:#56777e;
  font-size:.84rem;
  font-weight:800;
}
.auth-mini-note code,
.auth-demo-note code{
  padding:2px 8px;
  border-radius:999px;
  background:#fff;
  color:#006f80;
  font-family:inherit;
}

.auth-footnote{
  position:relative;
  z-index:1;
  margin:14px 0 0;
  color:#779197;
  font-size:.82rem;
  line-height:1.45;
  font-weight:700;
}

.auth-alert{
  display:none;
  align-items:flex-start;
  gap:8px;
  margin-bottom:12px;
  padding:12px 13px;
  border-radius:15px;
  font-size:.84rem;
  font-weight:800;
  outline:none;
}
.auth-alert.is-visible{display:flex}
.auth-alert.is-error{background:rgba(217,45,32,.08);color:#9b241a}
.auth-alert.is-success{background:rgba(11,157,106,.1);color:#0d7652}
.auth-alert.is-info{background:rgba(6,199,220,.1);color:#066d7c}
.auth-alert-symbol{
  display:grid;
  place-items:center;
  flex:0 0 24px;
  width:22px;
  height:22px;
  border-radius:50%;
  background:#fff;
}

.auth-phone-preview{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
  padding:12px;
  border:1px solid #d9f1f4;
  border-radius:16px;
  background:#f2fdff;
}
.auth-phone-preview-icon{
  display:grid;
  place-items:center;
  flex:0 0 40px;
  width:40px;
  height:40px;
  border-radius:13px;
  background:#fff;
  box-shadow:0 10px 22px rgba(2,51,60,.07);
}
.auth-phone-preview span span{
  display:block;
  color:#7b959a;
  font-size:.74rem;
  font-weight:800;
}
.auth-phone-preview b{
  display:block;
  color:var(--auth-ink);
  font-size:.94rem;
  line-height:1.1;
}

.otp-group{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:8px;
}
.otp-input{
  width:100%;
  height:54px;
  border:1px solid #dfe7e9;
  border-radius:15px;
  background:#fff;
  color:var(--auth-ink);
  text-align:center;
  outline:0;
  font-size:1.16rem;
  font-weight:900;
  box-shadow:0 9px 22px rgba(2,51,60,.04);
  transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease;
}
.otp-input:focus{
  border-color:rgba(6,199,220,.8);
  box-shadow:0 0 0 5px rgba(6,199,220,.11),0 14px 28px rgba(2,51,60,.07);
  transform:translateY(-1px);
}
.otp-input.is-filled{background:#f8feff}

.auth-resend{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  color:#789197;
  font-size:.82rem;
  font-weight:800;
}
.auth-resend button{
  border:0;
  padding:0;
  background:transparent;
  color:#007985;
  font-weight:900;
  cursor:pointer;
}
.auth-resend button:disabled{opacity:.45;cursor:not-allowed}

.auth-password-rules{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin:0;
  padding:0;
  list-style:none;
}
.auth-password-rule{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 11px;
  border:1px solid #e4ecee;
  border-radius:13px;
  background:#f9fbfb;
  color:#6e898f;
  font-size:.8rem;
  font-weight:800;
}
.auth-password-rule::before{
  content:"•";
  display:grid;
  place-items:center;
  flex:0 0 21px;
  width:21px;
  height:21px;
  border-radius:50%;
  background:#fff;
  color:#91a6aa;
  box-shadow:0 6px 14px rgba(2,51,60,.06);
}
.auth-password-rule.is-valid{
  border-color:rgba(4,198,140,.2);
  background:rgba(4,198,140,.09);
  color:#0a7753;
}
.auth-password-rule.is-valid::before{content:"✓";color:#0a7753}

.auth-noscript{
  position:fixed;
  left:16px;
  right:16px;
  bottom:16px;
  z-index:30;
  padding:11px 13px;
  border-radius:16px;
  background:#fff;
  color:var(--auth-ink);
  font-weight:800;
  box-shadow:var(--auth-shadow);
}

[data-state-fallback][hidden]{display:none!important}
.auth-input[aria-invalid="true"],
.otp-input[aria-invalid="true"]{color:var(--auth-danger)}
.auth-input-wrap:has(.auth-input[aria-invalid="true"]),
.otp-input[aria-invalid="true"]{
  border-color:rgba(217,45,32,.55);
  box-shadow:0 0 0 4px rgba(217,45,32,.08);
}

@keyframes spin{to{transform:rotate(360deg)}}

@media (max-width:640px){
  .auth-main{
    align-items:start;
    padding:84px 14px 20px;
  }
  .auth-card{
    padding:24px 18px;
    border-radius:30px;
    box-shadow:0 18px 50px rgba(2,51,60,.09);
  }
  .auth-card h2{font-size:1.72rem}
  .auth-input-wrap{min-height:60px}
}

@media (max-width:430px){
  .auth-main{padding:78px 12px 16px}
  .auth-card{
    padding:22px 16px;
    border-radius:28px;
  }
  .auth-card h2{font-size:1.6rem}
  .auth-card-lead{font-size:.88rem}
  .auth-input-wrap{min-height:54px;padding:0 11px}
  .auth-input-icon{flex-basis:36px;width:36px;height:36px;margin-right:8px}
  .auth-password-toggle{flex-basis:38px;width:38px;height:38px}
  .auth-button{min-height:54px}
  .otp-group{gap:6px}
  .otp-input{height:50px;border-radius:14px;font-size:1.04rem}
  .auth-password-rules{grid-template-columns:1fr}
}

/* ---------- Register page using the same visual system as login ---------- */
.auth-consent{
  display:flex;
  align-items:center;
  gap:10px;
  color:#607e85;
  font-size:.86rem;
  font-weight:800;
  cursor:pointer;
}
.auth-consent input{
  width:18px;
  height:18px;
  margin:0;
  accent-color:var(--auth-cyan-dark);
  cursor:pointer;
}
.auth-register-switch{
  position:relative;
  z-index:1;
  margin:16px 0 0;
  text-align:center;
  color:#779197;
  font-size:.88rem;
  font-weight:800;
}

/* --- Ro‘yxatdan o‘tish: ma’lumot sahifasi --- */
.auth-info-steps{display:grid;gap:10px;margin:6px 0 18px}
.auth-info-step{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;border:1px solid #d7eef1;border-radius:16px;background:#f5fdfe}
.auth-info-step-num{flex:0 0 30px;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:.9rem;color:#06323a;background:linear-gradient(135deg,#00e0ef,#00a6b2)}
.auth-info-step > div > strong{display:block;font-size:.95rem;color:#0b2d33;margin-bottom:2px}
.auth-info-step > div > span{display:block;font-size:.84rem;line-height:1.45;color:#5b7378}
a.auth-button{text-decoration:none}
.auth-button-secondary{margin-top:10px;background:#eefbfc;color:#065f68;box-shadow:none;border:1.5px solid #bfeef2}
.auth-button-secondary:hover{background:#dff7fa}
body.kt-theme-dark .auth-info-step{background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.12)}
body.kt-theme-dark .auth-info-step > div > strong{color:#eafeff}
body.kt-theme-dark .auth-info-step > div > span{color:#a9cfd4}
body.kt-theme-dark .auth-button-secondary{background:rgba(0,224,239,.08);color:#9ff0f6;border-color:rgba(0,224,239,.35)}
