/* build: critical-login-v3 (do not remove) */

:root{
  --bg:#f3f4f6;
  --card:#ffffff;
  --ink:#111827;
  --muted:#6b7280;
  --line:rgba(17,24,39,.12);
  --brand:#10b981;
  --brand2:#059669;
}

/* Base (works even if Tailwind doesn't load) */
html,body{height:100%;}
body.login-page{
  margin:0;
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
  background:var(--bg);
  color:var(--ink);
  font-family: Vazirmatn, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Prevent iOS zoom on focus */
input,button,select,textarea{font-size:16px;}

.login-card{
  width:100%;
  max-width:420px;
  background:var(--card);
  border-radius:24px;
  box-shadow: 0 20px 45px rgba(17,24,39,.10);
  overflow:hidden;
}

/* Tabs */
.login-card .flex.border-b{display:flex; border-bottom:1px solid var(--line);}
.login-card .flex.border-b > button{
  flex:1;
  padding:14px 12px;
  background:transparent;
  border:0;
  cursor:pointer;
  font-weight:700;
  color:var(--muted);
}

/* Content */
.login-card .p-6{padding:18px;}

/* Inputs */
.login-card label{display:block; font-size:12px; color:var(--muted); margin:0 0 6px;}
.login-card input[type="tel"],
.login-card input[type="password"],
.login-card input[type="text"],
.login-card input[type="number"]{
  width:100%;
  box-sizing:border-box;
  border:1px solid rgba(107,114,128,.35);
  border-radius:14px;
  padding:12px 12px;
  outline:none;
  background:#fff;
}
.login-card input:focus{border-color:var(--brand); box-shadow:0 0 0 3px rgba(16,185,129,.15);}

/* Buttons */
.login-card button[id^="btn"],
.login-card button[type="submit"],
.login-card button.w-full{
  width:100%;
  border:0;
  border-radius:14px;
  padding:12px 14px;
  background:var(--brand);
  color:#fff;
  font-weight:800;
  cursor:pointer;
}
.login-card button[id^="btn"]:active{transform:translateY(1px);}

/* Small rows */
.login-card .flex.items-center.justify-between,
.login-card .flex.items-center.gap-2{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.login-card .text-xs{font-size:12px;}
.login-card .text-gray-600{color:var(--muted);}
.login-card a{color:var(--brand2); text-decoration:none; font-weight:700;}
.login-card a:hover{text-decoration:underline;}

/* Message box */
#msg-box{border-radius:12px; padding:10px 12px; font-size:13px; text-align:center;}

/* Utility fallbacks used in markup (minimal subset) */
.hidden{display:none !important;}
.w-full{width:100%;}
.max-w-md{max-width:28rem;}
.bg-white{background:#fff;}
.rounded-3xl{border-radius:24px;}
.shadow-xl{box-shadow: 0 20px 45px rgba(17,24,39,.10);}
.overflow-hidden{overflow:hidden;}
.space-y-4 > * + *{margin-top:16px;}
.mt-2{margin-top:8px;}
.mt-4{margin-top:16px;}
.mb-4{margin-bottom:16px;}
.p-3{padding:12px;}
.p-6{padding:18px;}
.border{border:1px solid var(--line);}
.border-b{border-bottom:1px solid var(--line);}
.text-sm{font-size:14px;}
.text-center{text-align:center;}
.transition{transition: all .2s ease;}

/* RTL phone inputs: keep numbers readable */
.dir-ltr{direction:ltr;}
.text-right{text-align:right;}

/* Mobile tweaks */
@media (max-width:420px){
  body.login-page{padding:12px;}
  .login-card{border-radius:18px;}
  .login-card .p-6{padding:16px;}
}
