/* Layout + responsive rules for the login, forgot-password, OTP and reset-password screens. */

body.auth-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: #e6ecf0;
    font-family: 'Segoe UI', sans-serif;
}

.auth-bg {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('/img/login_bg.png') center / cover no-repeat;
}

.auth-container {
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    display: flex;
    width: 100%;
    max-width: 950px;
    min-height: 600px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.auth-card-left {
    flex: 1 1 50%;
    display: flex;
    position: relative;
}

    .auth-card-left img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.auth-card-right {
    flex: 1 1 50%;
    min-width: 0;
    padding: 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* These pages were designed to fill the viewport on their own; inside the card they should size to their content. */
.auth-card-right .otp-page {
    min-height: 0;
    padding: 0;
}

.auth-card-right .form-options {
    flex-wrap: wrap;
    gap: 10px;
}

/* Tablet / phone: drop the side image, let the form take the full card */
@media (max-width: 767.98px) {
    .auth-card {
        max-width: 460px;
        min-height: 0;
        border-radius: 16px;
    }

    .auth-card-left {
        display: none;
    }

    .auth-card-right {
        flex-basis: 100%;
        padding: 32px 24px;
    }
}

/* Small phones */
@media (max-width: 479.98px) {
    .auth-container {
        padding: 12px;
    }

    .auth-card-right {
        padding: 24px 16px;
    }

    .auth-card-right .login-title {
        font-size: 26px;
    }

    .auth-card-right .login-subtitle {
        font-size: 14px;
        margin-bottom: 22px;
    }

    .auth-card-right .logo-container {
        margin-bottom: 20px;
    }

    .auth-card-right .custom-form-group {
        margin-bottom: 18px;
    }

    .auth-card-right .form-options {
        margin-bottom: 22px;
    }

    .auth-card-right .otp-boxes {
        gap: 6px;
    }

    .auth-card-right .otp-input {
        width: 36px;
        height: 46px;
        font-size: 18px;
    }
}
