﻿.sr-only{
  position:absolute!important;
  width:1px!important;height:1px!important;
  padding:0!important;margin:-1px!important;
  overflow:hidden!important;clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;border:0!important;
}

.otp-auth-card{
  width:min(100%,420px);
  border-radius:22px;
}

.otp-auth-title{
  margin:0;
  text-align:center;
}

.otp-auth-subtitle{
  margin:0 0 .95rem;
  text-align:center;
  line-height:1.9;
}

.otp-auth-form{
  width:100%;
  display:flex;
  flex-direction:column;
  gap:.7rem;
}

.otp-auth-field{
  width:100%;
  margin:0;
}

.otp-auth-field[hidden],
.field[hidden],
.guest-field[hidden]{
  display:none!important;
}

.otp-auth-input{
  width:100%;
  min-height:58px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.03));
  color:var(--text);
  font-family:'Sahel',var(--font,inherit);
  font-size:1.08rem;
  font-weight:700;
  text-align:center;
  direction:ltr;
  font-variant-numeric:tabular-nums;
  padding:.85rem 1rem;
  outline:none;
  transition:border-color .18s ease,box-shadow .18s ease,transform .14s ease,background .18s ease;
}

.otp-auth-input:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 4px rgba(139,92,246,.16);
  background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.045));
}

.otp-auth-phone-input{
  font-size:1.25rem;
  letter-spacing:.04em;
}

.otp-slot-group{
  --otp-length:5;
  display:grid;
  grid-template-columns:repeat(var(--otp-length), minmax(0, 1fr));
  gap:.55rem;
  direction:ltr;
}

.otp-slot-group[hidden]{
  display:none!important;
}

.otp-slot{
  width:100%;
  min-width:0;
  aspect-ratio:1/1;
  min-height:58px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.14);
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.03));
  color:var(--text);
  font-family:ui-monospace,SFMono-Regular,Consolas,'Liberation Mono',monospace;
  font-size:1.45rem;
  font-weight:900;
  text-align:center;
  direction:ltr;
  font-variant-numeric:tabular-nums;
  outline:none;
  transition:border-color .18s ease,box-shadow .18s ease,transform .14s ease,background .18s ease;
}

.otp-slot:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 4px rgba(139,92,246,.16);
  transform:translateY(-1px);
  background:linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,.045));
}

.otp-auth-fallback-input{
  font-family:ui-monospace,SFMono-Regular,Consolas,'Liberation Mono',monospace;
  font-size:1.28rem;
  font-weight:900;
  letter-spacing:.34em;
  padding-inline-start:1.28rem;
  margin-top:.05rem;
}

.otp-auth-fallback-input[hidden]{
  display:none!important;
}

.otp-auth-field.is-invalid .otp-auth-input,
.otp-auth-field.is-invalid .otp-slot{
  border-color:rgba(224,82,82,.68);
}

.otp-auth-field.is-valid .otp-auth-input,
.otp-auth-field.is-valid .otp-slot{
  border-color:rgba(62,207,114,.55);
}

.otp-auth-submit{
  min-height:50px;
  margin-top:.1rem;
  border-radius:16px;
  font-size:.98rem;
  font-weight:800;
}

.otp-auth-error{
  min-height:1.2rem;
  margin:0;
  text-align:center;
}

.otp-auth-dev-note{
  display:none;
  align-items:center;
  justify-content:space-between;
  gap:.9rem;
  width:100%;
  padding:.82rem .9rem;
  border-radius:16px;
  background:linear-gradient(180deg,rgba(62,207,114,.12),rgba(62,207,114,.06));
  border:1px solid rgba(62,207,114,.22);
  color:#dff9e8;
  direction:rtl;
}

.otp-auth-dev-note.is-visible{
  display:flex;
}

.otp-auth-dev-note[hidden]{
  display:none!important;
}

.otp-auth-dev-copy{
  display:flex;
  flex-direction:column;
  gap:.16rem;
  min-width:0;
}

.otp-auth-dev-eyebrow{
  font-size:.72rem;
  font-weight:800;
  color:#9be8b3;
}

.otp-auth-dev-text{
  font-size:.78rem;
  line-height:1.8;
  color:#dff9e8;
}

.otp-auth-dev-code{
  flex-shrink:0;
  min-width:88px;
  padding:.58rem .8rem;
  border-radius:12px;
  background:rgba(7,8,14,.32);
  border:1px solid rgba(255,255,255,.08);
  color:#fff;
  font-family:'Sahel',var(--font,inherit);
  font-size:1.2rem;
  font-weight:900;
  text-align:center;
  direction:ltr;
  font-variant-numeric:tabular-nums;
  letter-spacing:.18em;
}

.otp-auth-link{
  border:none;
  background:transparent;
  color:#c7d3ff;
  font:inherit;
  font-size:.84rem;
  font-weight:800;
  cursor:pointer;
  padding:.1rem 0;
  text-align:center;
}

.otp-auth-link:hover{
  color:#f5f1fe;
}

.otp-auth-handoff{
  display:flex;
  flex-direction:column;
  gap:.75rem;
  margin-top:1rem;
}

.otp-auth-handoff[hidden]{
  display:none!important;
}

.otp-auth-divider{
  display:flex;
  align-items:center;
  gap:.75rem;
  color:var(--text-dim);
  font-size:.78rem;
}

.otp-auth-divider::before,
.otp-auth-divider::after{
  content:"";
  flex:1;
  height:1px;
  background:rgba(255,255,255,.1);
}

.otp-auth-handoff .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  min-height:48px;
}

.otp-auth-resend{
  color:var(--text-dim);
}

.otp-auth-resend:not(:disabled){
  color:#c7d3ff;
}

.otp-auth-resend:disabled{
  cursor:not-allowed;
  opacity:.68;
}

@media (max-width:520px){
  .otp-auth-input{
    min-height:54px;
    font-size:1rem;
  }

  .otp-auth-phone-input{
    font-size:1.14rem;
  }

  .otp-slot-group{
    gap:.45rem;
  }

  .otp-slot{
    min-height:52px;
    border-radius:14px;
    font-size:1.22rem;
  }

  .otp-auth-dev-note{
    flex-direction:column;
    align-items:stretch;
    text-align:center;
  }

  .otp-auth-dev-code{
    width:100%;
    min-width:0;
  }
}