:root {
    --auth-black: #000000;
    --auth-white: #ffffff;
    --auth-muted: #6b6b6b;
    --auth-border-radius: 12px;
}

body.auth-page {
    height: 100vh;
    overflow: hidden;
    background: var(--auth-white);
    color: var(--auth-black);
    margin: 0;
}

.auth-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: 100vh;
    background: var(--auth-white);
}

.auth-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.25rem;
    padding: 2.25rem 2rem 0;
    flex-shrink: 0;
}

img.auth-header-logo {
    display: block;
    height: 40px;
    max-height: 40px;
    width: auto;
    max-width: none;
    object-fit: contain;
    flex-shrink: 0;
}

img.auth-header-logo--arlef {
    height: 56px;
    max-height: 56px;
}

.auth-body {
    display: flex;
    flex: 1;
    min-height: 0;
    padding: 0 6% 3.5rem;
    gap: 1.5rem;
}

.auth-main {
    flex: 1 1 48%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.auth-main-inner {
    width: 100%;
    max-width: 380px;
}

.auth-aside {
    flex: 1 1 52%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.auth-aside-graphic {
    display: block;
    width: min(100%, 600px);
    height: auto;
    max-height: min(72vh, 620px);
    aspect-ratio: 1;
    overflow: visible;
}

svg.auth-aside-graphic {
    fill: #000000;
}

.auth-app-logo {
    display: block;
    width: 128px;
    height: 128px;
    margin: 0 auto 1.15rem;
    object-fit: contain;
}

.auth-subtitle {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--auth-black);
    margin: 0 0 2rem;
}

.auth-form-title {
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 1.25rem;
    color: var(--auth-black);
}

.auth-page .form-control.auth-input {
    background: var(--auth-white);
    border: 1.5px solid var(--auth-black);
    border-radius: var(--auth-border-radius);
    color: var(--auth-black);
    padding: 0.85rem 1rem;
    box-shadow: none;
}

.auth-page .form-control.auth-input:focus {
    border-color: var(--auth-black);
    box-shadow: none;
    background: var(--auth-white);
}

.auth-page .form-control.auth-input::placeholder {
    color: var(--auth-muted);
}

.auth-form-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.auth-page .form-check-input {
    border: 1.5px solid var(--auth-muted);
    border-radius: 3px;
}

.auth-page .form-check-input:checked {
    background-color: var(--auth-black);
    border-color: var(--auth-black);
}

.auth-page .form-check-label {
    color: var(--auth-black);
}

.auth-link {
    color: var(--auth-black);
    text-decoration: none;
    font-weight: 500;
}

.auth-link:hover {
    color: var(--auth-black);
    text-decoration: underline;
}

.auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.9rem 1.25rem;
    border: none;
    border-radius: var(--auth-border-radius);
    background: var(--auth-black);
    color: var(--auth-white);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.15s ease, opacity 0.15s ease;
}

.auth-btn:hover,
.auth-btn:focus {
    background: #222;
    color: var(--auth-white);
}

.auth-btn:active {
    background: #111;
}

.auth-heading {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--auth-black);
    margin: 0 0 1.5rem;
}

.auth-footer-note {
    text-align: center;
    color: var(--auth-muted);
    margin-top: 1rem;
}

@media (max-width: 991.98px) {
    body.auth-page {
        overflow: auto;
        height: auto;
        min-height: 100vh;
    }

    .auth-shell {
        height: auto;
        min-height: 100vh;
    }

    .auth-header {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.85rem 1.75rem;
        padding: 1.5rem 1.25rem 0.5rem;
    }

    img.auth-header-logo,
    img.auth-header-logo--regione,
    img.auth-header-logo--infofactory {
        height: 32px;
        max-height: 32px;
        max-width: none;
    }

    img.auth-header-logo--arlef {
        height: 44px;
        max-height: 44px;
    }

    .auth-body {
        flex-direction: column;
        padding: 1rem 1.25rem 2rem;
    }

    .auth-aside {
        display: none;
    }

    .auth-main {
        flex: 1 1 auto;
        padding-top: 1rem;
    }
}
