/* JumpRise Auth — Step121L8E264
   Original scale + refined brand design.
   مبنا: اندازه‌های نسخه قدیمی E253 حفظ شده:
   - max-width: 380px
   - border-radius: 22px
   - header padding: 28px 24px 20px
   - body padding: 24px
   - compact button/input scale
*/
*,*::before,*::after{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

:root{
  --jr-login-page:#f4ece2;
  --jr-login-card:#ffffff;
  --jr-login-card2:#fdf8f3;
  --jr-login-text:#241408;
  --jr-login-text2:#826050;
  --jr-login-muted:#a98a76;
  --jr-login-border:#eeddc8;
  --jr-login-navy:#07142B;
  --jr-login-navy2:#102143;
  --jr-login-navy3:#030a16;
  --jr-login-gold:#d7a648;
  --jr-login-coral:#d8624a;
  --jr-login-coral2:#aa4030;
  --jr-login-coral-soft:#fef0eb;
  --jr-login-shadow:0 8px 40px rgba(140,70,40,.12);
}

html{
  min-height:100%;
}

body{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  margin:0;
  background:
    radial-gradient(circle at 50% 18%, rgba(216,98,74,.10), transparent 32%),
    linear-gradient(160deg,#f4ece2 0%,#fdf8f3 70%,#fef0eb 100%);
  background-attachment:fixed;
  color:var(--jr-login-text);
  font-family:Vazir,Vazirmatn,Tahoma,sans-serif;
  -webkit-font-smoothing:antialiased;
}

.card{
  width:100%;
  max-width:380px;
  overflow:hidden;
  border-radius:22px;
  background:var(--jr-login-card);
  border:1px solid var(--jr-login-border);
  box-shadow:var(--jr-login-shadow);
}

.card-head{
  position:relative;
  padding:28px 24px 20px;
  text-align:center;
  background:
    radial-gradient(circle at 50% 0%, rgba(215,166,72,.18), transparent 40%),
    linear-gradient(135deg,var(--jr-login-navy3),var(--jr-login-navy) 58%,#241106);
  color:#fff;
}

.card-head::after{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(215,166,72,.42),transparent);
}

.card-logo{
  width:54px;
  height:54px;
  min-height:54px;
  margin:0 auto 10px;
  display:grid;
  place-items:center;
  border-radius:16px;
  background:transparent;
  box-shadow:0 10px 24px rgba(0,0,0,.22);
  overflow:hidden;
  color:#fff;
  font-size:26px;
}

.card-logo .jr-auth-brand-logo-img,
.jr-auth-brand-logo-img{
  width:54px;
  height:54px;
  border-radius:16px;
  object-fit:cover;
  display:block;
  background:transparent;
  box-shadow:none;
}

.card-logo .jr-brand-logo-dark,
.jr-auth-brand-logo-img.jr-brand-logo-dark{
  display:none;
}

.card-logo .jr-brand-logo-light,
.jr-auth-brand-logo-img.jr-brand-logo-light{
  display:block;
}

.card-title{
  font-size:20px;
  font-weight:900;
  line-height:1.35;
  margin:0 0 5px;
  letter-spacing:-.35px;
  color:#fff;
}

.card-sub{
  margin:0;
  color:rgba(255,255,255,.72);
  font-size:12.5px;
  font-weight:600;
  line-height:1.8;
}

.card-body{
  padding:24px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.75),transparent),
    var(--jr-login-card);
}

.form-group{
  margin-bottom:14px;
}

.form-group label{
  display:block;
  font-size:12px;
  font-weight:800;
  color:var(--jr-login-text);
  margin-bottom:6px;
}

.form-group-mobile{
  margin-bottom:14px;
}

.form-group-mobile label{
  display:none;
}

.inp{
  width:100%;
  height:50px;
  border:1.5px solid var(--jr-login-border);
  border-radius:12px;
  background:var(--jr-login-card2);
  color:var(--jr-login-text);
  padding:0 14px;
  font-family:inherit;
  font-size:15px;
  outline:none;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow:none;
}

.inp:focus{
  border-color:var(--jr-login-coral);
  box-shadow:0 0 0 4px rgba(216,98,74,.13);
  background:#fff;
}

.inp-mobile{
  height:52px;
  border-radius:14px;
  text-align:center;
  direction:ltr;
  font-size:18px;
  font-weight:900;
  letter-spacing:1.1px;
  padding:0 14px;
}

.inp-mobile::placeholder{
  color:rgba(130,96,80,.45);
  font-weight:800;
  letter-spacing:1px;
  text-align:center;
}

#otpCode{
  text-align:center;
  direction:ltr;
  letter-spacing:6px;
  font-size:20px;
  font-weight:900;
}

#otpCode::placeholder{
  direction:ltr;
  text-align:center;
  letter-spacing:6px;
  color:#c8aa94;
}

.btn{
  display:block;
  width:100%;
  height:auto;
  min-height:50px;
  border:0;
  border-radius:12px;
  cursor:pointer;
  font-family:inherit;
  font-weight:900;
  font-size:15px;
  color:#fff;
  background:linear-gradient(135deg,var(--jr-login-coral),var(--jr-login-coral2));
  box-shadow:0 8px 24px rgba(216,98,74,.28);
  transition:transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  padding:14px 16px;
  margin-top:4px;
}

.btn:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 28px rgba(216,98,74,.32);
}

.btn:active{
  transform:translateY(0);
}

.btn:disabled{
  opacity:.6;
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
}

.btn-back{
  display:block;
  width:100%;
  padding:10px;
  min-height:42px;
  margin-top:8px;
  border:1px solid var(--jr-login-border);
  border-radius:10px;
  background:transparent;
  color:var(--jr-login-text2);
  font-family:inherit;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
  transition:border-color .18s ease, color .18s ease, background .18s ease;
}

.btn-back:hover{
  border-color:var(--jr-login-coral);
  color:var(--jr-login-coral);
  background:#fff;
}

.btn-back:disabled,
.btn-resend:disabled{
  opacity:.55;
  cursor:not-allowed;
  background:var(--jr-login-card2);
}

.msg-err{
  display:none;
  border-radius:10px;
  background:#fef2f2;
  color:#dc2626;
  border:1px solid #fecaca;
  padding:10px 14px;
  margin-bottom:14px;
  font-size:13px;
  font-weight:700;
  line-height:1.8;
  text-align:center;
}

.msg-err.show{
  display:block;
}

.hint,
.timer{
  text-align:center;
  color:var(--jr-login-text2);
  font-size:12px;
  font-weight:700;
  line-height:1.8;
  margin-top:10px;
  min-height:18px;
}

.hint strong{
  color:var(--jr-login-text);
}

.otp-resend-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-inline-start:4px;
  padding:2px 8px;
  border-radius:999px;
  background:var(--jr-login-coral-soft);
  color:var(--jr-login-coral2);
  font-weight:900;
  cursor:pointer;
  border:1px solid rgba(216,98,74,.18);
}

.otp-resend-link:hover{
  filter:brightness(.98);
}

.footer{
  text-align:center;
  padding:14px;
  font-size:11px;
  font-weight:700;
  color:var(--jr-login-text2);
  border-top:1px solid var(--jr-login-border);
  background:var(--jr-login-card2);
}

.step{
  display:none;
}

.step.active{
  display:block;
}

@media(max-width:430px){
  body{
    padding:18px;
  }

  .card{
    max-width:380px;
  }

  .card-head{
    padding:25px 21px 19px;
  }

  .card-logo,
  .card-logo .jr-auth-brand-logo-img,
  .jr-auth-brand-logo-img{
    width:52px;
    height:52px;
    min-height:52px;
    border-radius:15px;
  }

  .card-title{
    font-size:19px;
  }

  .card-sub{
    font-size:12px;
  }

  .card-body{
    padding:22px;
  }

  .inp-mobile{
    height:50px;
    font-size:17px;
  }

  .btn{
    min-height:49px;
    font-size:15px;
  }
}

/* Step121L8E265 — restore vertical breathing
   بعد از حذف لیبل «شماره موبایل»، کارت از نظر ارتفاع فشرده شد.
   عرض همان اسکیل قبلی 380px می‌ماند، فقط ارتفاع و فضای عمودی متعادل‌تر می‌شود. */
@media(min-width:431px){
  .card{
    min-height:400px !important;
  }

  .card-head{
    padding-top:31px !important;
    padding-bottom:24px !important;
  }

  .card-body{
    padding-top:30px !important;
    padding-bottom:28px !important;
  }

  .form-group-mobile{
    margin-bottom:16px !important;
  }

  .footer{
    padding-top:15px !important;
    padding-bottom:15px !important;
  }
}

@media(max-width:430px){
  .card-head{
    padding-top:27px !important;
    padding-bottom:21px !important;
  }

  .card-body{
    padding-top:25px !important;
    padding-bottom:23px !important;
  }
}

