:root {
    --navy: #14213a;
    --green: #0a9b68;
    --green-dark: #087a54;
    --text: #172033;
    --muted: #667085;
    --border: #d8e0ec;
    --danger: #b42318;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

body.login-page {
    margin: 0;
    color: var(--text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(circle at 15% 20%, rgba(10, 155, 104, .16), transparent 30%),
        radial-gradient(circle at 85% 80%, rgba(20, 33, 58, .12), transparent 32%),
        #f4f7fb;
}

.login-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(20, 33, 58, .025) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(20, 33, 58, .025) 1px, transparent 1px);
    background-size: 32px 32px;
}

.login-shell {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 20px;
}

.login-panel {
    width: min(100%, 440px);
    padding: 42px 42px 30px;
    border: 1px solid rgba(216, 224, 236, .9);
    border-radius: 20px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 24px 65px rgba(20, 33, 58, .14);
}

.login-brand {
    width: 66px;
    height: 58px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 16px;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -.03em;
    background: linear-gradient(135deg, var(--green), var(--navy));
    box-shadow: 0 10px 24px rgba(10, 155, 104, .25);
}

.login-eyebrow {
    margin: 0 0 7px;
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    text-align: center;
    text-transform: uppercase;
}

.login-panel h1 {
    margin: 0;
    color: var(--navy);
    font-size: 27px;
    line-height: 1.2;
    text-align: center;
}

.login-subtitle {
    margin: 10px 0 30px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.login-form label { display: block; margin: 0 0 8px; font-size: 14px; font-weight: 700; }
.input-wrap { position: relative; margin-bottom: 20px; }

.input-wrap input {
    width: 100%;
    height: 50px;
    padding: 0 82px 0 44px;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: 0;
    color: var(--text);
    background: #fbfcfe;
    font-size: 15px;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.input-wrap input:focus {
    border-color: var(--green);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(10, 155, 104, .12);
}

.input-icon { position: absolute; z-index: 1; top: 50%; left: 15px; transform: translateY(-50%); font-size: 16px; opacity: .65; }

.password-toggle {
    position: absolute;
    top: 50%;
    right: 13px;
    transform: translateY(-50%);
    padding: 5px;
    border: 0;
    color: var(--green-dark);
    background: transparent;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.login-feedback:not(:empty) { margin: -5px 0 17px; }
.login-message { padding: 11px 13px; border-radius: 8px; font-size: 13px; line-height: 1.4; }
.login-message.error { border: 1px solid #fecdca; color: var(--danger); background: #fef3f2; }

.login-button {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    box-shadow: 0 9px 20px rgba(10, 155, 104, .22);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, opacity .2s;
}

.login-button:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(10, 155, 104, .28); }
.login-button:disabled { cursor: wait; opacity: .7; transform: none; }

.remember-login {
    display: flex !important;
    align-items: center;
    gap: 9px;
    margin: 2px 0 5px !important;
    color: var(--muted);
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer;
}

.remember-login input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--green);
}

.remember-login span { line-height: 1.25; }

.back-link {
    display: block;
    margin-top: 24px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.back-link:hover { color: var(--green-dark); }

@media (max-width: 520px) {
    .login-shell { padding: 18px; }
    .login-panel { padding: 34px 24px 26px; border-radius: 16px; }
    .login-panel h1 { font-size: 23px; }
}
.login-device-lock{text-align:center;padding-top:8px}.login-lock-image{display:block;width:94px;height:94px;margin:4px auto 18px}.login-device-lock h2{margin:0 0 10px;color:#b91c1c;font-size:23px}.login-device-lock p{margin:0 auto 20px;max-width:360px;color:#667085;font-size:14px;line-height:1.55}.login-lock-refresh,.login-lock-back{display:block;width:100%;box-sizing:border-box;text-align:center;text-decoration:none;font-weight:700}.login-lock-refresh{padding:12px;border-radius:9px;background:#dc2626;color:#fff}.login-lock-refresh:hover{background:#b91c1c}.login-lock-back{margin-top:17px;color:#667085;font-size:13px}.login-lock-back:hover{color:#14213a}
.login-panel.is-device-blocked{width:min(100%,460px);padding:38px 42px 32px;border-top:5px solid #dc2626}.is-device-blocked .login-device-lock{padding-top:0}.is-device-blocked .login-lock-image{width:104px;height:104px}


.pdv-selection{margin-top:18px;padding:20px;border:1px solid #c9d8ee;border-radius:14px;background:#f7faff;text-align:left}.pdv-selection h2{margin:0 0 6px;color:#14213a;font-size:1.25rem}.pdv-selection p{margin:0 0 14px;color:#66758d}.pdv-selection label{display:block;margin-bottom:7px;font-weight:700;color:#14213a}.pdv-selection select{width:100%;min-height:52px;margin-bottom:14px;padding:0 14px;border:1px solid #b9cbe4;border-radius:10px;background:#fff;font-size:1rem;color:#14213a}.pdv-selection .login-button{width:100%}
