:root {
    --login-ink: #0f172a;
    --login-muted: #64748b;
    --login-line: #dbe4ef;
    --login-brand: #2563eb;
    --login-brand-dark: #1d4ed8;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: #eaf0f7; }
body {
    min-height: 100vh;
    margin: 0;
    color: var(--login-ink);
    background:
        radial-gradient(circle at 8% 12%, rgba(37,99,235,.17), transparent 31rem),
        radial-gradient(circle at 91% 88%, rgba(14,165,233,.12), transparent 30rem),
        #eef3f9 !important;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
body > main { min-height: calc(100vh - 76px); padding: 32px; }
.container-login {
    width: min(980px, 100%);
    max-width: 980px;
    min-height: 590px;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(148,163,184,.28);
    border-radius: 25px !important;
    background: #fff;
    box-shadow: 0 28px 80px rgba(15,23,42,.15) !important;
}
.box-logo {
    position: relative;
    width: 48%;
    overflow: hidden;
    padding: 52px !important;
    color: #fff;
    border: 0 !important;
    background:
        radial-gradient(circle at 90% 5%, rgba(96,165,250,.35), transparent 250px),
        linear-gradient(145deg, #0f172a, #172554 62%, #1d4ed8 130%);
}
.box-logo::before,
.box-logo::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 50%;
}
.box-logo::before { width: 310px; height: 310px; left: -180px; bottom: -170px; }
.box-logo::after { width: 190px; height: 190px; right: -110px; top: -80px; }
.logo {
    position: relative;
    z-index: 1;
    width: min(225px, 76%) !important;
    max-width: 225px;
    max-height: 225px;
    object-fit: contain;
    filter: drop-shadow(0 18px 35px rgba(2,6,23,.27));
}
img.logo { filter: drop-shadow(0 18px 35px rgba(2,6,23,.27)) drop-shadow(0 0 1px rgba(255,255,255,.8)); }
.box-logo::marker { display: none; }

.login-brand-copy { position: relative; z-index: 1; max-width: 360px; margin-top: 30px; text-align: center; }
.login-brand-copy span { display: block; color: #93c5fd; font-size: 10px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.login-brand-copy strong { display: block; overflow: hidden; margin-top: 7px; color: #fff; font-size: 23px; font-weight: 800; letter-spacing: -.03em; text-overflow: ellipsis; white-space: nowrap; }
.login-brand-copy p { margin: 11px 0 15px; color: #bdc9da; font-size: 12px; line-height: 1.6; }
.login-trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 13px; color: #dbeafe; font-size: 10px; }
.login-trust b { color: #6ee7b7; }
.box-login { width: 52%; padding: 54px 56px !important; background: #fff; }
.box-login form { width: 100%; max-width: 390px; }
#form-heading { margin-bottom: 7px !important; color: var(--login-ink); font-size: 29px; font-weight: 800; letter-spacing: -.035em; }
#form-heading::after {
    content: "Secure access to your retail workspace";
    display: block;
    margin-top: 8px;
    color: var(--login-muted);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
}
.box-login .form-floating { margin: 0 !important; }
.box-login .form-control,
.box-login .input-group .form-control,
.box-login .input-group-text {
    min-height: 55px;
    color: var(--login-ink);
    border-color: #cbd5e1;
    background: #fff;
    box-shadow: none;
}
.box-login .form-control:focus { position: relative; z-index: 3; border-color: #60a5fa; box-shadow: 0 0 0 4px rgba(37,99,235,.11); }
.box-login input[name="username"],
.box-login span[id="input-username"] { margin-top: 25px; margin-bottom: -1px; border-radius: 13px 13px 0 0 !important; }
.box-login input[name="password"],
.box-login span[id="input-password"] { border-radius: 0 0 13px 13px !important; }
.box-login .form-floating label { color: #64748b; }
#submit-button {
    min-height: 52px;
    margin-top: 18px;
    border: 0;
    border-radius: 13px;
    background: var(--login-brand);
    box-shadow: 0 10px 24px rgba(37,99,235,.23);
    font-size: 14px;
    font-weight: 800;
}
#submit-button:hover,
#submit-button:focus { background: var(--login-brand-dark); transform: translateY(-1px); }
.alert { padding: 12px 14px; border-radius: 11px; font-size: 12px; }
.alert div:not(:first-child) { margin-top: 1rem; }
#migration-progress .progress { height: 13px !important; border-radius: 999px; background: #dbeafe; }
#migration-progress h3 { font-size: 18px; }
.bi { height: 1em; }
footer { min-height: 76px; padding: 0 24px 20px; }
.footer {
    max-width: 980px;
    margin: 0 !important;
    padding: 13px 18px !important;
    color: #64748b;
    border: 1px solid rgba(148,163,184,.24);
    border-radius: 14px !important;
    background: rgba(255,255,255,.76) !important;
    box-shadow: 0 8px 24px rgba(15,23,42,.06) !important;
    backdrop-filter: blur(10px);
    font-size: 11px;
}
footer a:not(:hover) { text-decoration: none; }
.g-recaptcha { max-width: 100%; overflow-x: auto; }

@media (max-width: 767.98px) {
    body > main { min-height: auto; padding: 16px; }
    .container-login { min-height: auto; border-radius: 19px !important; }
    .box-logo,
    .box-login { width: 100%; }
    .box-logo { min-height: 190px; padding: 28px !important; }
    .logo { max-width: 105px; max-height: 105px; }
    .login-brand-copy { margin-top: 16px; }
    .login-brand-copy p, .login-trust { display: none; }
    .login-brand-copy strong { font-size: 18px; }
    .box-login { padding: 35px 25px 40px !important; }
    #form-heading { font-size: 25px; }
    footer { padding: 0 16px 16px; }
    .footer { max-width: 100%; border-radius: 12px !important; }
}
@media (max-width: 359.98px) { .g-recaptcha { min-height: 86px; } }

/* Pharmacy POS login identity */
body.pharmacy-login { background:radial-gradient(circle at 13% 15%,rgba(45,212,191,.17),transparent 28rem),linear-gradient(135deg,#eaf6f3,#f7faf9 48%,#eaf3f1) !important; color:#183a3d; }
body.pharmacy-login .container-login { overflow:hidden; border:1px solid #d4e6e2; box-shadow:0 28px 70px rgba(13,75,70,.16) !important; }
body.pharmacy-login .box-logo { background:linear-gradient(160deg,#082f35,#0b4744); color:#d9f7f1; }
body.pharmacy-login .box-logo .logo { max-width:138px; color:#13a494 !important; }
body.pharmacy-login .login-brand-copy span { color:#77d9cc; }
body.pharmacy-login .login-brand-copy strong { color:#fff; }
body.pharmacy-login .login-brand-copy p { color:#c7dfdc; }
body.pharmacy-login .login-trust { color:#bfe8e2; }
body.pharmacy-login .login-trust b { color:#5eead4; }
body.pharmacy-login #form-heading { color:#153e42; font-weight:800; letter-spacing:-.02em; }
body.pharmacy-login .btn-primary { border-color:#0f766e; background:#0f766e; }
body.pharmacy-login .btn-primary:hover { border-color:#0b5e58; background:#0b5e58; }
body.pharmacy-login .form-control:focus { border-color:#69bdb4; box-shadow:0 0 0 .25rem rgba(15,118,110,.12); }
body.pharmacy-login footer .text-primary { color:#0f766e !important; }
