/* Login page (coherent with Home styles) */

.login-page {
    --home-blue-900: #1f2f57;
    --home-blue-800: #2a3b6c;
    --home-blue-700: #294b84;
    --home-orange: #f28c28;

    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem 0;
    position: relative;
    background:
        radial-gradient(900px 500px at 10% 10%, rgba(255, 255, 255, .22), transparent 60%),
        linear-gradient(180deg, rgba(31, 47, 87, .94) 0%, rgba(41, 75, 132, .86) 55%, rgba(31, 47, 87, .92) 100%),
        url("/assets/images/home-hero-bg.png");
    background-size: cover;
    background-position: center;
}

.login-page::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20, 28, 48, .55) 0%, rgba(20, 28, 48, .38) 45%, rgba(20, 28, 48, .15) 100%);
    pointer-events: none;
}

.login-shell {
    position: relative;
    z-index: 1;
}

.login-card {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .07);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px rgba(10, 16, 32, .35);
}

/* Make both columns equal height on desktop */
.login-card > .row {
    display: flex;
}

.login-card > .row > [class*="col-"] {
    display: flex;
}

.login-visual {
    color: rgba(255, 255, 255, .92);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.login-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.28));
    pointer-events: none;
}

.login-visual > * {
    position: relative;
    z-index: 1;
}

.login-brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    font-weight: 900;
    letter-spacing: .3px;
}

.login-brand img {
    height: 34px;
    width: auto;
}

.login-visual h1 {
    margin: 1.2rem 0 .35rem;
    font-weight: 900;
    line-height: 1.12;
    text-wrap: balance;
}

.login-visual .accent {
    color: #b9c7ff;
}

.login-visual p {
    margin: 0;
    color: rgba(255, 255, 255, .86);
    max-width: 36rem;
}

.login-features {
    display: grid;
    gap: .65rem;
    max-width: 26rem;
}

.login-features .feature-item {
    display: flex;
    gap: .55rem;
    align-items: flex-start;
    font-weight: 650;
    color: rgba(255, 255, 255, .9);
}

.login-features .feature-item .check {
    color: #2eac66;
    flex: 0 0 auto;
    margin-top: .05rem;
    font-weight: 900;
    line-height: 1;
}

.login-form {
    background: rgba(255, 255, 255, .92);
    width: 100%;
}

.login-form .form-label {
    font-weight: 700;
    color: rgba(31, 47, 87, .92);
}

.login-form .form-control {
    border-radius: 12px;
    padding: .8rem .95rem;
    border-color: rgba(31, 47, 87, .18);
}

.login-form .form-control:focus {
    border-color: rgba(41, 75, 132, .55);
    box-shadow: 0 0 0 .2rem rgba(41, 75, 132, .18);
}

.login-form .form-check-input {
    border-color: rgba(31, 47, 87, .25);
}

.login-form .form-check-input:checked {
    background-color: var(--home-blue-700);
    border-color: var(--home-blue-700);
}

.login-form .btn-login {
    background: var(--home-orange);
    border: 0;
    color: #fff;
    border-radius: 999px;
    font-weight: 800;
    padding: .7rem 1.1rem;
}

.login-form .btn-login:hover,
.login-form .btn-login:focus {
    background: #ff9b3c;
    color: #fff;
}

.login-form .aux {
    color: rgba(27, 36, 55, .78);
}

.login-form a {
    color: var(--home-blue-700);
    font-weight: 700;
    text-decoration: none;
}

.login-form a:hover,
.login-form a:focus {
    text-decoration: underline;
}

.login-back {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: rgba(255, 255, 255, .88);
    text-decoration: none;
    font-weight: 700;
}

.login-back:hover,
.login-back:focus {
    color: #fff;
    text-decoration: underline;
}

@media (min-width: 992px) {
    .login-visual {
        min-height: 520px;
    }
}

@media (max-width: 991.98px) {
    .login-page {
        place-items: stretch;
        padding: calc(1rem + env(safe-area-inset-top)) 0 calc(1rem + env(safe-area-inset-bottom));
    }

    .login-card > .row {
        display: block;
    }

    .login-card > .row > [class*="col-"] {
        display: block;
    }

    .login-features {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-card {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}
