/* Al Badr 2026 redesign: sign-in page (resources/views/frontend/auth/v2/login.blade.php), from the Claude Design
   board «Login page · تسجيل الدخول». Loaded after albdr.css (tokens, header, sky, footer). The white card keeps its
   own greys: #616566 for quiet text, #848383 for field borders, #F4F5EB for hover. */

/* ---------- night sky: the green glow sits behind the card ---------- */
.auth-hero{min-height:0;background:radial-gradient(760px 520px at 22% 60%,rgba(4,87,73,.95),transparent 70%),linear-gradient(180deg,var(--black) 0%,var(--night) 72%)}
[dir="ltr"] .auth-hero{background:radial-gradient(760px 520px at 78% 60%,rgba(4,87,73,.95),transparent 70%),linear-gradient(180deg,var(--black) 0%,var(--night) 72%)}
.nav-actions .btn-ghost[aria-current="page"]{border-color:var(--yellow);color:var(--yellow)}

/* copy and help on one side, the card on the other; on phones: copy, card, help */
.auth-body{position:relative;z-index:2;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,480px);grid-template-areas:"copy card" "help card";column-gap:56px;row-gap:36px;align-items:center;padding-top:64px;padding-bottom:88px}
.auth-copy{grid-area:copy;align-self:end;display:flex;flex-direction:column;align-items:flex-start}
.auth-card{grid-area:card}
.auth-help{grid-area:help;align-self:start;justify-self:start}

.auth-copy .crumbs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 28px;font-size:13px;line-height:20px;color:var(--grey-light)}
.auth-copy .crumbs a{color:inherit;text-decoration:none}
.auth-copy .crumbs a:hover{color:var(--white)}
.auth-copy .crumbs [aria-current]{color:var(--white)}
.auth-copy .eyebrow{margin:0 0 12px;color:var(--yellow)}
.auth-copy h1{margin:0;font-size:clamp(34px,3.6vw,44px);line-height:1.27;font-weight:700}
.auth-copy .lead{margin:14px 0 0;max-width:440px;font-size:16px;line-height:28px;font-weight:400}
.auth-copy .orn{margin:36px 0 0;color:var(--yellow);opacity:.85;height:20px}

.auth-help{display:flex;flex-direction:column;gap:10px;padding:18px 20px;border-radius:16px;background:rgba(255,255,255,.05);border:1px solid rgba(231,231,218,.16)}
.auth-help-title{margin:0;font-size:14px;line-height:22px;font-weight:600}
.auth-help-links{display:flex;flex-wrap:wrap;gap:8px 22px;font-size:14px;line-height:22px}
.auth-help-links a{display:inline-flex;align-items:center;gap:8px;min-height:32px;color:var(--cream);text-decoration:none}
.auth-help-links a:hover{color:var(--white)}

/* ---------- the white card ---------- */
.auth-card{border-radius:24px;background:var(--white);color:var(--black);overflow:hidden;box-shadow:0 30px 80px -30px rgba(0,0,0,.55);line-height:1.5}
.auth-card :focus-visible{outline:2px solid var(--green-deep);outline-offset:2px}
.auth-form{display:flex;flex-direction:column;padding:36px 36px 28px;margin:0}
.auth-form h2{margin:0;font-size:22px;line-height:32px;font-weight:700;color:var(--green-deep)}
.auth-note{margin:4px 0 0;font-size:13px;line-height:20px;color:#616566}

/* answers and notices at the top of the card */
.auth-alert{display:flex;gap:10px;align-items:flex-start;margin-top:20px;padding:12px 14px;border-radius:12px;border:1px solid;font-size:14px;line-height:1.6}
.auth-alert[hidden]{display:none}
.auth-alert svg{flex:none;margin-top:1px}
.auth-alert strong{display:block;font-weight:700}
.auth-alert code{display:inline-block;margin-top:6px;padding:1px 8px;border-radius:6px;background:rgba(0,0,0,.06);font-family:ui-monospace,monospace;font-size:12px;letter-spacing:.04em}
.auth-alert a{display:inline-block;margin-inline-start:8px;color:inherit;font-weight:700}
.auth-alert.is-error{background:#FDECEA;border-color:#F5B7B1;color:#7A1A14}
.auth-alert.is-ok{background:#E8F3EC;border-color:#B7DCC6;color:var(--green-deep)}
.auth-alert.is-warn{background:#FFF8E6;border-color:#F5CF6B;color:#7A5A00}
.auth-alert.is-cancel{background:#F6F6F2;border-color:#DDDDD5;color:#444}

/* fields */
.fld-group{display:flex;flex-direction:column;gap:8px;margin-top:18px}
.auth-note + .fld-group,.auth-alert + .fld-group{margin-top:28px}
.fld-group label{font-size:14px;line-height:20px;font-weight:500}
.fld-group .req{color:var(--green)}
.fld-wrap{position:relative}
.fld-ic{position:absolute;top:0;bottom:0;inset-inline-start:16px;display:flex;align-items:center;color:#616566;pointer-events:none}
.fld{display:block;width:100%;height:52px;margin:0;padding:0 16px;border:1px solid #848383;border-radius:14px;background:var(--white);font:inherit;font-size:15px;color:var(--black)}
.fld::placeholder{color:#8a8e8f}
/* the e-mail field reads left to right, so its padding follows the page's side, not its own */
html[dir="rtl"] .fld.has-ic{padding-right:46px}
html[dir="ltr"] .fld.has-ic{padding-left:46px}
html[dir="rtl"] .fld.has-eye{padding-left:54px}
html[dir="ltr"] .fld.has-eye{padding-right:54px}
html[dir="rtl"] .fld[dir="ltr"]{text-align:right}
.fld[aria-invalid="true"]{border-color:#B42318}
.fld-err{margin:0;font-size:13px;line-height:20px;color:#B42318}
.eye-btn{position:absolute;top:4px;inset-inline-end:4px;width:44px;height:44px;display:flex;align-items:center;justify-content:center;border:0;border-radius:10px;background:transparent;color:#616566;cursor:pointer}
.eye-btn:hover{background:#F4F5EB}
.eye-btn span{display:flex}
.eye-btn .eye-hide,.eye-btn[aria-pressed="true"] .eye-show{display:none}
.eye-btn[aria-pressed="true"] .eye-hide{display:flex}

.auth-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;margin-top:12px}
.auth-check{display:inline-flex;align-items:center;gap:10px;min-height:44px;font-size:14px;line-height:20px;cursor:pointer}
.auth-check input{width:18px;height:18px;margin:0;accent-color:var(--green)}
.auth-forgot{display:inline-flex;align-items:center;min-height:44px;font-size:14px;line-height:20px;font-weight:500;color:var(--green);text-decoration:none}
.auth-forgot:hover{color:var(--green-deep);text-decoration:underline}

.auth-submit{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:14px;width:100%;height:52px;border:0;border-radius:999px;background:var(--green);color:var(--white);font:inherit;font-size:16px;font-weight:700;cursor:pointer;transition:background .2s}
.auth-submit:hover{background:#0A6E41}
.auth-submit[disabled]{cursor:progress;opacity:.85}
.auth-submit[aria-busy="true"]::before{content:"";width:18px;height:18px;border-radius:50%;border:2px solid rgba(255,255,255,.4);border-top-color:var(--white);animation:auth-spin .8s linear infinite}
@keyframes auth-spin{to{transform:rotate(360deg)}}

.auth-or{display:flex;align-items:center;gap:12px;margin:22px 0;font-size:13px;line-height:20px;color:#616566}
.auth-or span{flex:1 1 auto;height:1px;background:rgba(189,188,188,.6)}

/* staff single sign-on */
.auth-sso{display:flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:0 16px;border:1px solid var(--green-deep);border-radius:999px;background:var(--white);font-size:15px;line-height:22px;font-weight:600;color:var(--green-deep);text-decoration:none;text-align:center;transition:background .15s}
.auth-sso:hover{background:#F4F5EB}
.auth-sso svg{flex:none}
.auth-hint{margin:10px 0 0;font-size:13px;line-height:20px;color:#616566;text-align:center}

/* official UAE PASS button: only sized here and given the official hover state, never recoloured */
.uaepass-btn-img{display:block;position:relative;width:100%;max-width:320px;margin:16px auto 0;line-height:0;border-radius:12px}
.uaepass-btn-img img{display:block;width:100%;height:auto;user-select:none}
.uaepass-btn-img__hover{position:absolute;inset:0;opacity:0;transition:opacity .15s ease}
.uaepass-btn-img:hover .uaepass-btn-img__hover,.uaepass-btn-img:focus-visible .uaepass-btn-img__hover{opacity:1}
.uaepass-btn-img:active img{transform:translateY(1px)}

/* ---------- no account yet: the two ways to register ---------- */
.auth-join{padding:22px 36px 28px;background:var(--sheet);border-top:1px solid rgba(189,188,188,.6)}
.auth-join p{margin:0;font-size:14px;line-height:20px;font-weight:600}
.auth-join-links{display:flex;flex-wrap:wrap;gap:12px;margin-top:12px}
/* a label stays on one line; when two don't fit side by side (longer English labels) the tiles stack */
.reg-a{flex:1 1 180px;display:flex;align-items:center;gap:8px;min-height:52px;padding:0 12px;white-space:nowrap;border:1px solid rgba(189,188,188,.8);border-radius:14px;background:var(--white);font-size:14px;line-height:20px;font-weight:600;color:var(--green-deep);text-decoration:none;transition:border-color .15s,background .15s}
.reg-a:hover{background:#F4F5EB;border-color:var(--green)}
.reg-ic{flex:none;width:32px;height:32px;border-radius:10px;background:rgba(12,127,75,.1);color:var(--green);display:flex;align-items:center;justify-content:center}
.reg-label{flex:1 1 auto}
.reg-go{display:flex;color:#616566}
[dir="ltr"] .reg-go svg{transform:scaleX(-1)}

/* ---------- the other account pages: verification, forgot and reset password ---------- */
.auth-badge{display:grid;place-items:center;width:56px;height:56px;margin-bottom:16px;border-radius:18px;background:rgba(12,127,75,.1);color:var(--green)}
.fld-hint{margin:0;font-size:12.5px;line-height:1.6;color:#616566}
.fld.is-code{height:60px;font-size:26px;font-weight:700;letter-spacing:.5em;text-align:center;padding-left:.5em}
.fld.is-code::placeholder{letter-spacing:.35em;color:#BDBCBC}
.auth-back{align-self:center;display:inline-flex;align-items:center;min-height:44px;margin-top:10px;font-size:14px;font-weight:600;color:var(--green);text-decoration:none}
.auth-back:hover{color:var(--green-deep);text-decoration:underline}
.auth-q{margin:14px 0 0;font-size:15px;color:var(--grey-light)}
.auth-q a{font-weight:600;color:var(--yellow);text-decoration:none}
.auth-q a:hover{text-decoration:underline}
.auth-resend{margin:0}
.auth-resend-hint{margin:4px 0 14px !important;font-size:13.5px !important;font-weight:400 !important;color:#616566}
button.auth-sso{width:100%;font:inherit;font-weight:600;cursor:pointer}

/* ---------- tablets and phones ---------- */
@media (max-width:900px){
  .auth-body{grid-template-columns:minmax(0,1fr);grid-template-areas:"copy" "card" "help";row-gap:28px;padding-top:36px;padding-bottom:64px}
  .auth-copy,.auth-help{align-self:auto}
  .auth-copy .crumbs{margin-bottom:20px}
  .auth-copy .orn{display:none}
  .auth-help{justify-self:stretch}
}
@media (max-width:520px){
  .auth-card{border-radius:20px}
  .auth-form{padding:28px 20px 22px}
  .auth-join{padding:20px 20px 24px}
}
