:root {
    --navy: #14213a;
    --blue: #1769e0;
    --blue-dark: #0f55bd;
    --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(23, 105, 224, .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: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 16px;
    color: #fff;
    font-family: Georgia, serif;
    font-size: 34px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--blue), var(--navy));
    box-shadow: 0 10px 24px rgba(23, 105, 224, .26);
}

.login-eyebrow {
    margin: 0 0 7px;
    color: var(--blue);
    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: 28px;
    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(--blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(23, 105, 224, .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(--blue);
    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(--blue), var(--blue-dark));
    box-shadow: 0 9px 20px rgba(23, 105, 224, .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(23, 105, 224, .28); }
.login-button:disabled { cursor: wait; opacity: .7; transform: none; }

.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(--blue-dark); }

.login-footer {
    margin: 25px 0 0;
    color: #8992a3;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 520px) {
    .login-shell { padding: 18px; }
    .login-panel { padding: 34px 24px 26px; border-radius: 16px; }
    .login-panel h1 { font-size: 24px; }
}
.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}
