/* =============================================================================
   DarajaERP Workspace sign-in pages (layouts/auth-light.blade.php, daraja-signin.css):
   Sign in, Forgot password, Reset password. Self-contained: no back-office CSS.
   ============================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
[hidden] { display: none !important; }
.al-body { background: #fff; color: #10213D; font: 15px/1.55 "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
.al-body a { color: #0878AD; }
.al-body :focus-visible { outline: 2px solid #00A6DE; outline-offset: 2px; }
.al-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.al { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }

/* left: navy story side */
.al-l { position: relative; overflow: hidden; color: #fff; padding: clamp(24px, 3vw, 40px); display: grid; grid-template-rows: auto auto 1fr auto; gap: 22px;
    background: radial-gradient(circle at 15% 10%, rgba(0,166,222,.32), transparent 40%), radial-gradient(circle at 85% 95%, rgba(139,97,194,.3), transparent 42%), linear-gradient(150deg, #0B1530, #12203C 60%, #142850); }
.al-l::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; }
.al-l > * { position: relative; z-index: 1; min-width: 0; }
/* DarajaERP icon watermark: faint on the navy side, fainter behind the form. */
.al-l::after { content: ""; position: absolute; left: -90px; bottom: -100px; width: 400px; height: 400px; background: url('../img/daraja-favicon.png') center / contain no-repeat; opacity: .07; filter: grayscale(1) brightness(3); pointer-events: none; z-index: 0; }
.al-r { position: relative; overflow: hidden; }
.al-r::before { content: ""; position: absolute; right: -80px; bottom: -80px; width: 320px; height: 320px; background: url('../img/daraja-favicon.png') center / contain no-repeat; opacity: .045; pointer-events: none; }
.al-r > * { position: relative; z-index: 1; }
.al-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; justify-self: start; }
.al-brand img { height: 38px; width: auto; }
.al-brand em { font-style: normal; font-weight: 800; font-size: 11px; line-height: 1; letter-spacing: .12em; text-transform: uppercase; color: #6FD0F2; padding: 5px 8px; border: 1px solid rgba(0,166,222,.5); border-radius: 7px; }
.al-daja { position: absolute !important; right: clamp(20px, 3vw, 34px); top: clamp(16px, 2.4vw, 26px); width: 84px; height: auto; z-index: 2; filter: drop-shadow(0 14px 18px rgba(0,0,0,.45)); animation: al-float 3s ease-in-out infinite; }
.al-bubble { position: absolute !important; right: clamp(110px, 10vw, 124px); top: clamp(24px, 3vw, 34px); z-index: 2; padding: 8px 12px; border-radius: 14px 14px 4px 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 13px; font-weight: 700; }
@keyframes al-float { 50% { transform: translateY(-6px); } }
.al-hello h1 { margin: 0; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.05; letter-spacing: -.03em; font-weight: 900; }
.al-hello h1 b { color: #34D399; font-weight: 900; }
.al-hello p { margin: 10px 0 0; color: #B7C3D8; max-width: 44ch; }
.al-photo { position: relative; align-self: center; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 11; max-height: 46vh; width: 100%; justify-self: center; box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); border: 1px solid rgba(255,255,255,.12); background: #12203C; }
.al-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.al-photo img.on { opacity: 1; }
.al-cap { position: absolute; left: 12px; bottom: 12px; padding: 7px 11px; border-radius: 10px; background: rgba(11,21,48,.78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 13px; font-weight: 800; }
.al-dots { position: absolute; right: 12px; bottom: 16px; display: flex; gap: 5px; }
.al-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.45); }
.al-dots i.on { background: #fff; }
.al-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.al-facts span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); font-size: 13px; font-weight: 700; }
.al-facts b { color: #34D399; }
.al-by { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; font-size: 12.5px; color: #A9B6CC; }
.al-by a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: #fff; color: #10213D; font-weight: 800; text-decoration: none; }
.al-by img { height: 22px; width: auto; }

/* right: the form */
.al-r { padding: 26px clamp(20px, 4vw, 48px) 20px; display: grid; grid-template-rows: auto 1fr auto; gap: 18px; background: #fff; min-width: 0; }
.al-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.al-top > a { font-size: 13.5px; font-weight: 700; text-decoration: none; }
.al-lang { height: 38px; border-radius: 10px; border: 1px solid #DCE3EE; padding: 0 10px; background: #fff; font: 700 13.5px/1 inherit; font-family: inherit; color: #10213D; max-width: 50%; }
.al-form { width: min(420px, 100%); justify-self: center; align-self: center; display: grid; gap: 14px; padding: 8px 0; }
.al-ey { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: 11px; line-height: 1; letter-spacing: .12em; text-transform: uppercase; color: #0878AD; }
.al-ey svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.al-title { margin: 0; font-size: clamp(26px, 2.4vw, 32px); font-weight: 900; letter-spacing: -.02em; line-height: 1.08; }
.al-sub { margin: -6px 0 0; color: #56677F; }
.al-msg { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: #FBE9ED; color: #A82C44; font-size: 14px; font-weight: 700; }
.al-msg.is-ok { background: #E3F6EE; color: #0B7F5A; }
.al-fields { display: grid; gap: 14px; margin: 0; }
.al-fld { display: grid; gap: 6px; }
.al-fld label, .al-row label { font-size: 13px; font-weight: 800; color: #34465F; }
.al-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.al-row a { font-size: 13px; font-weight: 700; text-decoration: none; }
.al-inp { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 8px 0 12px; border-radius: 12px; border: 1px solid #DCE3EE; background: #F7F9FC; transition: border-color .15s, box-shadow .15s, background .15s; }
.al-inp:focus-within { border-color: #00A6DE; box-shadow: 0 0 0 4px rgba(0,166,222,.14); background: #fff; }
.al-inp.is-err { border-color: #C0344F; box-shadow: 0 0 0 4px rgba(192,52,79,.1); }
.al-inp > svg { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: #8A97AD; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.al-inp input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: #10213D; }
.al-inp input::placeholder { color: #8A97AD; }
.al-eye { border: 0; background: none; color: #56677F; cursor: pointer; font: 800 13px/1 inherit; font-family: inherit; padding: 8px; border-radius: 8px; }
.al-eye:hover { background: #EEF2F7; }
.al-caps { font-size: 12.5px; font-weight: 800; color: #B76E00; }
.al-err { font-size: 12.5px; font-weight: 700; color: #C0344F; }
.al-chk { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #34465F; cursor: pointer; }
.al-chk input { width: 18px; height: 18px; accent-color: #0878AD; margin: 0; }
.al-go { height: 54px; border: 0; border-radius: 13px; color: #fff; font: 900 16px/1 inherit; font-family: inherit; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
    background: linear-gradient(135deg, #00A6DE, #0878AD); box-shadow: 0 14px 26px -14px rgba(0,166,222,.95); transition: transform .08s, filter .15s; }
.al-go:hover { filter: brightness(1.05); }
.al-go:active { transform: translateY(1px); }
.al-go:disabled { opacity: .8; cursor: progress; }
.al-spin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; animation: al-spin .9s linear infinite; }
@keyframes al-spin { to { transform: rotate(360deg); } }
.al-sep { display: flex; align-items: center; gap: 10px; color: #8A97AD; font-size: 12.5px; font-weight: 700; margin-top: 4px; }
.al-sep::before, .al-sep::after { content: ""; flex: 1; height: 1px; background: #DCE3EE; }
.al-alts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.al-alt { display: grid; gap: 2px; padding: 11px 12px; border-radius: 12px; border: 1px solid #DCE3EE; text-decoration: none; color: #10213D !important; background: #fff; }
.al-alt b { font-size: 14px; font-weight: 800; }
.al-alt small { font-size: 12px; color: #56677F; }
.al-alt:hover { border-color: #00A6DE; }
.al-help { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #F5F8FC; font-size: 13px; color: #34465F; }
.al-help img { width: 36px; height: auto; flex: 0 0 auto; }
.al-help a { color: #18A04A !important; font-weight: 800; text-decoration: none; }
.al-help a.al-tel { color: #0878AD !important; }
.al-demo { display: grid; gap: 8px; padding: 12px; border-radius: 12px; border: 1px dashed #DCE3EE; font-size: 13px; }
.al-demo div { display: flex; flex-wrap: wrap; gap: 6px; }
.al-demo a { padding: 6px 10px; border-radius: 999px; background: #E6F7FD; font-weight: 700; text-decoration: none; }
.al-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; font-size: 12px; color: #8A97AD; border-top: 1px solid #DCE3EE; padding-top: 12px; }
.al-foot a { color: inherit; }
.g-recaptcha { transform-origin: left top; }

/* tablets: a narrower story side */
@media (max-width: 1100px) {
    .al { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); }
    .al-bubble { display: none; }
}
/* phones: compact navy greeting on top, the form slides up over it */
@media (max-width: 760px) {
    .al { grid-template-columns: 1fr; }
    .al-l { padding: max(16px, env(safe-area-inset-top)) 18px 30px; grid-template-rows: auto auto; gap: 12px; }
    .al-photo, .al-facts, .al-by, .al-bubble { display: none; }
    .al-hello h1 { font-size: 26px; padding-right: 64px; }
    .al-hello p { font-size: 14px; margin-top: 6px; }
    .al-daja { width: 60px; right: 14px; top: 10px; }
    .al-r { margin-top: -18px; border-radius: 20px 20px 0 0; position: relative; padding: 18px 18px max(16px, env(safe-area-inset-bottom)); }
    .al-form { align-self: start; }
    .al-alts { grid-template-columns: 1fr; }
    .g-recaptcha { transform: scale(.92); }
}
@media (prefers-reduced-motion: reduce) {
    .al-daja, .al-spin { animation: none; }
    .al-photo img { transition: none; }
}
