@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy: #0b3768;
  --navy-dark: #06264b;
  --yellow: #ffc400;
  --canvas: #f4f7fb;
  --text: #102a43;
  --muted: #627d98;
  --border: #d9e5ef;
  --danger: #c73737;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  direction: rtl;
  color: var(--text);
  background: var(--canvas);
  font-family: "Vazirmatn", Tahoma, sans-serif;
}
body, input, button { font-family: "Vazirmatn", Tahoma, sans-serif; }
a { color: inherit; text-decoration: none; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, .92fr) minmax(480px, 1.08fr); }
.auth-brand {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding: 54px clamp(34px, 5vw, 78px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background: radial-gradient(circle at 18% 18%, #1763ad, transparent 34%), linear-gradient(145deg, var(--navy), var(--navy-dark));
}
.auth-brand::before { content: ""; position: absolute; width: 520px; height: 520px; left: -260px; bottom: -240px; border: 54px solid rgba(255,196,0,.1); border-radius: 50%; }
.auth-brand::after { content: ""; position: absolute; width: 350px; height: 350px; right: -180px; top: -160px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.auth-brand-link { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 12px; width: fit-content; }
.auth-brand-link img { width: 64px; height: 64px; border-radius: 18px; box-shadow: 0 18px 44px rgba(0,0,0,.28); }
.auth-brand-link strong { display: block; font-size: 21px; font-weight: 950; }
.auth-brand-link span { display: block; color: #bfd2e4; font-size: 11px; letter-spacing: .08em; }
.auth-message { position: relative; z-index: 2; max-width: 590px; }
.auth-pill { display: inline-flex; gap: 8px; align-items: center; padding: 7px 12px; border: 1px solid rgba(255,255,255,.17); border-radius: 999px; background: rgba(255,255,255,.08); color: #d8e5f1; font-size: 11px; font-weight: 800; }
.auth-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.auth-message h1 { margin: 22px 0 12px; font-size: clamp(37px, 4vw, 58px); line-height: 1.38; letter-spacing: -.045em; font-weight: 950; }
.auth-message h1 span { color: var(--yellow); }
.auth-message p { margin: 0; color: #cbdbe9; font-size: 14px; line-height: 2; }
.auth-points { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 10px 22px; color: #c4d6e6; font-size: 11px; }
.auth-points span::before { content: "✓"; margin-left: 7px; color: var(--yellow); }
.auth-main { min-height: 100vh; padding: 42px 24px; display: grid; place-items: center; }
.auth-card { width: min(100%, 465px); }
.auth-mobile-logo { display: none; margin: 0 auto 22px; width: 82px; height: 82px; border-radius: 23px; box-shadow: 0 16px 40px rgba(6,38,75,.18); }
.auth-card-header { margin-bottom: 28px; }
.auth-card-header h2 { margin: 0 0 8px; color: var(--navy-dark); font-size: 30px; font-weight: 950; letter-spacing: -.035em; }
.auth-card-header p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.auth-form { padding: 30px; border: 1px solid var(--border); border-radius: 28px; background: #fff; box-shadow: 0 24px 65px rgba(6,38,75,.11); }
.auth-field { margin-bottom: 18px; }
.auth-field label { display: block; margin: 0 3px 7px; color: var(--text); font-size: 12px; font-weight: 800; }
.auth-input-wrap { position: relative; }
.auth-input-wrap input { width: 100%; height: 54px; padding: 0 48px 0 46px; border: 1px solid var(--border); border-radius: 16px; outline: none; color: var(--text); background: #fbfdff; font-size: 14px; text-align: right; transition: border .2s, box-shadow .2s, background .2s; }
.auth-input-wrap input[type="email"] { direction: ltr; text-align: left; }
.auth-input-wrap input:focus { border-color: var(--navy); background: #fff; box-shadow: 0 0 0 4px rgba(11,55,104,.09); }
.auth-input-icon { position: absolute; right: 17px; top: 50%; transform: translateY(-50%); color: var(--navy); font-size: 19px; }
.auth-password-toggle { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; cursor: pointer; }
.auth-options { margin: 2px 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; }
.auth-remember { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.auth-remember input { width: 17px; height: 17px; accent-color: var(--navy); }
.auth-submit { width: 100%; min-height: 54px; border: 0; border-radius: 16px; color: var(--navy-dark); background: var(--yellow); font-size: 14px; font-weight: 950; cursor: pointer; box-shadow: 0 14px 30px rgba(255,196,0,.23); transition: transform .2s, opacity .2s; }
.auth-submit:hover { transform: translateY(-2px); }
.auth-submit:disabled { cursor: wait; opacity: .58; transform: none; }
.auth-switch { margin-top: 18px; text-align: center; color: var(--muted); font-size: 11px; }
.auth-switch a { color: var(--navy); font-weight: 850; }
.print-error-msg { margin-bottom: 16px; }
.print-error-msg:empty { display: none; }
.error-style { margin: 0; padding: 11px 14px; list-style: none; border: 1px solid rgba(199,55,55,.18); border-radius: 14px; color: var(--danger); background: rgba(199,55,55,.06); text-align: right; font-size: 11px; }
.help-block.form-error { display: block; margin: 6px 3px 0; color: var(--danger); font-size: 10px; }
.has-danger input { border-color: var(--danger); }

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-main { min-height: 100vh; padding: 34px 18px; }
  .auth-mobile-logo { display: block; }
}

@media (max-width: 520px) {
  .auth-card-header { text-align: center; }
  .auth-card-header h2 { font-size: 26px; }
  .auth-form { padding: 23px 18px; border-radius: 23px; }
}
