/*
 * Auth pages (login, forgot/reset password, 2FA, app download).
 * Layout: left = full-height image panel, right = full-height column with the form vertically centred
 * and the support block at the bottom. Nothing overflows the screen on normal desktop/laptop heights;
 * on short screens the right column simply grows and the page scrolls.
 */

.container-fluid {
    padding-left: 0px;
    padding-right: 20px;
}

a {
    text-decoration: none;
    color: #10B7BF;
}

a:hover, a:focus {
    color: #169B9A;
}

/* ---------- Left image panel ---------- */
.login-left {
    position: relative;               /* keeps the title inside the image panel */
    height: 100vh;
    min-height: 100%;
    padding: 16px;
    background-image: url('../assets/img/login-fade.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: right;
}

.login-left > img {
    max-width: min(540px, 100%);
}

.login-left-footer {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 0;
}

.login-left-footer h1 {
    font-size: clamp(32px, 4.2vw, 60px);
}

.login-left-footer h3 {
    font-size: clamp(24px, 2.8vw, 40px);
}

/* ---------- Right column ---------- */
.login-right {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.login-right form {
    width: 100%;
    max-width: 480px;
    margin-bottom: auto;              /* pushes the support block to the bottom */
}

.login-support {
    padding-top: 2rem;
    padding-bottom: 8px;
    font-size: 15px;
}

.forgot-password {
    font-size: 16px;
    margin-top: 8px;
}

.text-primary {
    color: #169B9A !important;
}

.errors {
    margin-block-end: 0em;
}

/* ---------- Phones (< 768px): no image panel, logo on top ---------- */
@media (max-width: 767.98px) {
    .container-fluid {
        padding-right: 0px;
        overflow-x: hidden;
    }

    .login-page {
        margin-left: 0;
        margin-right: 0;
    }

    .login-page > [class*="col-"] {
        padding-left: 0;
        padding-right: 0;
    }

    .login-left {
        display: none;
    }

    .login-right {
        padding: 16px 20px;
    }

    .logo-mobile {
        display: block;
        margin-bottom: 1.5rem;
        border-bottom: 4px double #000;
        padding: 16px 0px;
    }

    .login-right form {
        max-width: none;
        margin-top: auto;             /* vertically centred between logo and support block */
    }

    .login-right h2 {
        font-size: 1.75rem;
    }

    .login-support {
        font-size: 14px;
    }
}

/* ---------- Tablets and up (>= 768px) ---------- */
@media (min-width: 768px) {
    .login-left {
        display: block;
    }

    .logo-mobile {
        display: none;
    }

    .login-right {
        padding: 24px 24px 16px;
    }

    .login-right form {
        margin-top: auto;             /* vertically centred; replaces the fixed 25vh */
    }
}

/* Tablets (768px - 991px): give the form column more room than the default 8/4 split */
@media (min-width: 768px) and (max-width: 991.98px) {
    .login-page > .col-md-8 {
        flex: 0 0 auto;
        width: 50%;
    }

    .login-page > .col-md-4 {
        flex: 0 0 auto;
        width: 50%;
    }
}

/* Large screens: a bit more breathing room */
@media (min-width: 1400px) {
    .login-right {
        padding: 32px 40px 20px;
    }
}
