:root {
    --ic-blue-900: #080f3f;
    --ic-blue-800: #0d1c74;
    --ic-blue-700: #1a27a5;
    --ic-blue-600: #1d2bd8;
    --ic-blue-500: #116dff;
    --ic-surface: #f6f8fc;
    --ic-border: #d4daea;
    --ic-text: #1d2848;
}

body.ea.page-login {
    min-height: 100vh;
    font-family: Montserrat, "Segoe UI", "Helvetica Neue", sans-serif;
    background:
        linear-gradient(125deg, rgb(8 15 63 / 96%) 0%, rgb(13 28 116 / 95%) 42%, rgb(26 39 165 / 92%) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

body.ea.page-login::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 420px at 12% -12%, rgb(17 109 255 / 26%), transparent 60%),
        radial-gradient(700px 360px at 96% 120%, rgb(17 109 255 / 20%), transparent 62%),
        repeating-linear-gradient(110deg, rgb(255 255 255 / 4.5%) 0, rgb(255 255 255 / 4.5%) 1px, transparent 1px, transparent 22px);
    pointer-events: none;
}

body.ea.page-login .login-wrapper {
    width: min(100%, 500px);
    margin: 0 auto;
    border: 1px solid rgb(255 255 255 / 23%);
    border-radius: 20px;
    background: rgb(246 248 252 / 98%);
    box-shadow:
        0 24px 70px rgb(5 10 38 / 46%),
        0 4px 12px rgb(5 10 38 / 22%);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

body.ea.page-login .main-header {
    border-bottom: 1px solid var(--ic-border);
    padding: 28px 30px 18px;
    background:
        linear-gradient(180deg, #fff 0%, #f2f5ff 100%);
}

body.ea.page-login #header-logo {
    margin: 0;
    text-align: left;
}

body.ea.page-login #header-logo .logo {
    display: inline-block;
    margin: 0;
    color: var(--ic-blue-800);
    font-size: 1.78rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-decoration: none;
    line-height: 1.15;
    text-transform: uppercase;
}

body.ea.page-login #header-logo .logo::after {
    content: "Acesso corporativo";
    display: block;
    margin-top: 6px;
    color: rgb(29 40 72 / 72%);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.ea.page-login .content {
    padding: 24px 30px 30px;
}

body.ea.page-login .alert {
    border: 0;
    border-left: 4px solid #c43232;
    background: #fff0f0;
    color: #792121;
    padding: 10px 14px;
}

body.ea.page-login .form-group {
    margin-bottom: 18px;
}

body.ea.page-login .form-control-label {
    color: #293a64;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 6px;
}

body.ea.page-login .form-control {
    border-radius: 10px;
    border: 1px solid #cfd7ea;
    background: #fff;
    min-height: 46px;
    padding: 10px 12px;
    color: var(--ic-text);
    transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

body.ea.page-login .form-control:focus {
    border-color: var(--ic-blue-500);
    box-shadow: 0 0 0 3px rgb(17 109 255 / 20%);
    transform: translateY(-1px);
}

body.ea.page-login .form-check-input {
    border-color: #90a0c3;
}

body.ea.page-login .form-check-input:checked {
    background-color: var(--ic-blue-600);
    border-color: var(--ic-blue-600);
}

body.ea.page-login .form-check-label {
    color: #4a5c87;
    font-size: 0.9rem;
}

body.ea.page-login button[type="submit"],
body.ea.page-login .btn-primary {
    width: 100%;
    border: 0;
    border-radius: 10px;
    min-height: 47px;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, var(--ic-blue-700) 0%, var(--ic-blue-500) 100%);
    box-shadow: 0 10px 24px rgb(13 36 128 / 34%);
}

body.ea.page-login button[type="submit"]:hover,
body.ea.page-login .btn-primary:hover {
    filter: brightness(0.97);
}

body.ea.page-login .form-text a {
    color: var(--ic-blue-600);
    text-decoration: none;
    font-weight: 600;
}

body.ea.page-login .form-text a:hover {
    text-decoration: underline;
}

@media (width <= 576px) {
    body.ea.page-login {
        padding: 12px;
    }

    body.ea.page-login .main-header,
    body.ea.page-login .content {
        padding-left: 16px;
        padding-right: 16px;
    }

    body.ea.page-login #header-logo .logo {
        font-size: 1.46rem;
    }

    body.ea.page-login #header-logo .logo::after {
        font-size: 0.68rem;
    }
}
