:root {
    --beto-navy: #1a3d8f;
    --beto-navy-dark: #122a63;
    --beto-navy-light: #2f5fbf;
    --beto-red: #e41f26;
    --beto-red-dark: #c0181f;
    --beto-white: #ffffff;
    --beto-text: #1f2937;
    --beto-text-muted: #6b7280;
    --beto-border: #e5e7eb;
    --beto-font: "Nunito Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }

.login-body {
    min-height: 100vh;
    margin: 0;
    font-family: var(--beto-font);
    background:
        radial-gradient(circle at 12% 18%, rgba(228, 31, 38, .16), transparent 34%),
        radial-gradient(circle at 88% 12%, rgba(47, 95, 191, .22), transparent 36%),
        linear-gradient(160deg, #0f274f 0%, #1a3d8f 48%, #122a63 100%);
    color: var(--beto-text);
}

.login-shell {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    min-height: 100vh;
}

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 560px;
}

.login-brand img {
    width: min(420px, 72vw);
    height: auto;
    max-height: 420px;
    object-fit: contain;
    filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .35));
}

.login-form {
    width: min(420px, 100%);
    padding: 32px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 24px 60px rgba(8, 20, 48, .28);
}

.login-form__head {
    margin-bottom: 22px;
}

.login-form__head h2 {
    margin: 0 0 6px;
    color: var(--beto-navy);
}

.login-form__head p {
    margin: 0;
    color: var(--beto-text-muted);
    font-size: .92rem;
}

.login-form .beto-field {
    margin-bottom: 14px;
}

.login-form label {
    display: block;
    margin-bottom: 6px;
    font-size: .8rem;
    font-weight: 700;
}

.login-form input {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--beto-border);
    border-radius: 10px;
    background: #fff;
    font: inherit;
}

.login-form input:focus {
    outline: none;
    border-color: var(--beto-navy-light);
    box-shadow: 0 0 0 3px rgba(47, 95, 191, .14);
}

.login-error {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff1f1;
    color: #b42318;
    font-size: .88rem;
}

.login-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    margin-top: 6px;
    border: 0;
    border-radius: 8px;
    background: var(--beto-red);
    color: var(--beto-white);
    box-shadow: 0 3px 8px rgba(228, 31, 38, .2);
    font: inherit;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
}

.login-submit:hover {
    background: var(--beto-red-dark);
}

@media (max-width: 900px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-panel--brand {
        min-height: 28vh;
        padding: 28px 24px 8px;
    }

    .login-brand img {
        width: min(260px, 58vw);
        max-height: 260px;
    }

    .login-panel--form {
        padding: 18px 20px 36px;
        align-items: flex-start;
    }
}
