﻿/*@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');*/

body {
    position: relative;
    margin: 0;
    padding: 0;
    background-image: url("/images/WhiteHouse_Login.png");
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden; /* Prevents horizontal scrollbar from scale */
}

    body::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.51);
        z-index: -1;
    }

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
    box-sizing: border-box;
    transform: scale(0.85);
}

/* --- Refactored & Responsive Card --- */
.login-card,
.forgot-password-card,
.reset-password-card,
.confirm-reset-password-card {
    background-color: rgba(245, 246, 251, 1) !important;
    border-radius: 30px;
    padding: 2.5rem 5rem 5rem;
    width: 100%;
    max-width: 928px;
    height: auto;
    box-sizing: border-box;
}

    /* --- Responsive SVG Logo --- */
    .login-card svg {
        width: 100%;
        max-width: 520px;
        height: auto;
    }

/* --- Text Styles --- */
.login-heading-1 {
    font-family: raleway, sans-serif;
    font-size: 64px;
    font-weight: 700;
    color: rgba(39, 52, 94, 1) !important;
}

.login-heading-2 {
    font-family: raleway, sans-serif;
    font-size: 22px;
    font-weight: 500;
    color: rgba(131, 139, 165, 1) !important;
}

.login-primary-text {
    font-family: raleway, sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: rgba(197, 155, 52, 1) !important;
}

.login-secondary-text {
    font-family: raleway, sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: rgba(131, 139, 165, 1) !important;
    text-decoration: none;
}

.login-input {
    background-color: rgba(255, 255, 255, 1);
    color: rgba(178, 184, 203, 1);
    height: 63px;
    font-size: 18px;
}

.form-check-input {
    width: 1.5rem;
    height: 1.5rem;
}

.form-check-label {
    margin-left: 1rem;
}

/* --- Media Queries for Responsiveness --- */

/* ## For Larger Displays (screens wider than 1400px) */
@media (min-width: 1401px) {
    .login-container {
        transform: scale(0.85);
    }
}

/* ## For Tablets (screens below 992px) */
@media (max-width: 992px) {
    .login-container {
        transform: scale(0.8);
    }

    .login-card,
    .forgot-password-card,
    .reset-password-card,
    .confirm-reset-password-card {
        padding: 2rem 3rem 4rem;
    }

    .login-heading-1 {
        font-size: 48px;
    }

    .login-heading-2 {
        font-size: 20px;
    }
}

/* ## For Mobile Devices (screens below 768px) */
@media (max-width: 768px) {
    body {
        height: auto;
    }

    .login-container {
        align-items: flex-start;
        padding-top: 2rem;
        transform: scale(0.8);
    }

    .login-card,
    .forgot-password-card,
    .reset-password-card,
    .confirm-reset-password-card {
        padding: 2rem 1.5rem 3rem;
    }

    .card-body > .d-flex.justify-content-center {
        margin-bottom: 2rem !important;
    }

    .form-group.mt-5 {
        margin-top: 1.5rem !important;
    }

    .form-group.mb-5 {
        margin-bottom: 1.5rem !important;
    }

    .login-heading-1 {
        font-size: 36px;
    }

    .login-heading-2 {
        font-size: 18px;
        margin-top: 1rem !important;
    }

    .login-primary-text,
    .login-secondary-text {
        font-size: 16px;
    }

    .d-flex.flex-row.justify-content-between.pt-1 {
        flex-direction: column;
        align-items: center;
        gap: 1.25rem;
        padding: 0 !important;
        margin-top: 2.5rem !important;
        margin-bottom: 2.5rem !important;
    }

    .form-check-label {
        margin-left: 0.5rem;
    }
}
