* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: #102c42;
    font: 15px "Segoe UI", Arial, sans-serif;
    background: linear-gradient(145deg, #edf3f0, #fafbf8);
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.login-card {
    position: relative;
    width: min(470px, 100%);
    margin: 0;
    padding: 44px 46px;
    overflow: hidden;
    border: 1px solid #d5ddd8;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 22px 65px rgba(18,48,64,.13);
}

.accent {
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: #ffa300;
}

.brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 52px;
}

.company-logo {
    display: block;
    width: 122px;
    max-width: 50%;
    height: auto;
}

.secure {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #14877e;
    font: 700 10px Consolas, monospace;
    letter-spacing: 1px;
}

    .secure i {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #36b5aa;
    }

.eyebrow {
    color: #14877e;
    font: 700 11px Consolas, monospace;
    letter-spacing: 2px;
}

h1 {
    margin: 10px 0 8px;
    font-size: 31px;
}

.intro {
    margin: 0 0 28px;
    color: #667b8b;
}

label {
    display: block;
    margin: 17px 0 7px;
    font-size: 13px;
    font-weight: 700;
}

input {
    width: 100%;
    height: 46px;
    padding: 0 13px;
    border: 1px solid #cad5d0;
    border-radius: 8px;
    outline: 0;
    background: #fff;
    color: #102c42;
    font: 15px "Segoe UI", Arial, sans-serif;
}

    input:focus {
        border-color: #168b82;
        box-shadow: 0 0 0 3px rgba(22,139,130,.12);
    }

button {
    width: 100%;
    height: 46px;
    border-radius: 8px;
    cursor: pointer;
    font: 700 14px "Segoe UI", Arial, sans-serif;
}

.primary {
    margin-top: 9px;
    border: 0;
    background: #142f3f;
    color: #fff;
    box-shadow: 0 3px 0 #092232;
}

    .primary:hover {
        background: #1c4154;
    }

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    color: #80909b;
    font-size: 12px;
}

    .divider::before, .divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: #dce2de;
    }

.entra {
    border: 1px solid #cad5d0;
    background: #f9fbf9;
    color: #102c42;
}

    .entra:hover {
        background: #f0f5f2;
    }

.microsoft {
    margin-right: 8px;
    color: #1678d4;
    font-size: 20px;
}

.error {
    min-height: 18px;
    margin: 8px 0 0;
    color: #c62d2d;
    font-size: 12px;
}

.keep-logged-in {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 13px 0 5px;
    color: #526c80;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    user-select: none;
}

    .keep-logged-in input {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: 0;
        opacity: 0;
        pointer-events: none;
    }

.login-toggle {
    position: relative;
    width: 40px;
    height: 22px;
    flex: 0 0 40px;
    border: 1px solid #b9c5cc;
    border-radius: 999px;
    background: #dce3e6;
    transition: background-color .2s ease, border-color .2s ease;
}

.login-toggle-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(16,44,66,.25);
    transition: transform .2s ease;
}

.keep-logged-in input:checked + .login-toggle {
    border-color: #087c7a;
    background: #087c7a;
}

    .keep-logged-in input:checked + .login-toggle .login-toggle-knob {
        transform: translateX(18px);
    }

.keep-logged-in input:focus-visible + .login-toggle {
    outline: 3px solid rgba(8,124,122,.25);
    outline-offset: 2px;
}

.keep-logged-in:hover .keep-logged-in-text {
    color: #102c42;
}

.temporary {
    margin: 18px 0 0;
    color: #82919b;
    text-align: center;
    font-size: 11px;
}

@media (max-width: 520px) {
    .login-page {
        padding: 18px;
    }

    .login-card {
        padding: 32px 26px;
    }

    .brand-row {
        margin-bottom: 40px;
    }

    .secure {
        display: none;
    }
}
