/* General body styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, rgba(177, 156, 217, 0.7), rgba(201, 106, 106, 0.7));
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.row {
    width: 100%;
    max-width: 1200px;
}

.logo {
    width: 140px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.2));
}

.col-md-6.d-flex.flex-column.align-items-start.p-3 {
    padding-left: 35px;
    margin-left: -20px;
    margin-top: -20px;
}

.quote-text {
    text-shadow: 2px 4px 6px rgba(0, 0, 0, 0.5);
    font-size: 44.5px;
    font-weight: bold;
    color: white;
    max-width: 550px;
    line-height: 1.2;
}

/* Login Card */
.login-card {
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    background-color: white;
    padding: 20px;
    max-width: 450px;
    width: 125%;
    height: 450px;
    display: flex;
    flex-direction: column;
    margin-left: -40px;
    margin-top: 20px;
    position: relative;
    transform: translateY(-10px);
}

/* Adjust "Forgot Password" text */
h2 {
    font-weight: 700;
    font-size: 26px;
    text-align: center;
    margin-bottom: 20px;
}

.form-control {
    width: 390px;
}

.form-control::placeholder {
    color: #999;
    font-size: 14px;
}

.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(167, 139, 250, 0.2);
    outline: none;
}

.btn-primary {
    background-color: #a78bfa;
    border: none;
    margin-top: auto;
    padding: 8px 12px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #B19CD9;
}

.text-danger {
    color: red;
    text-align: center;
    margin-bottom: 10px;
    font-size: 14px;
    word-wrap: break-word;
    white-space: normal;
}

.error-message {
    margin-top: -10px;
    margin-bottom: 10px;
    font-size: 14px;
    text-align: left;
    color: red;
}

/* Mobile responsiveness (ONLY applies when screen width is 768px or smaller) */
@media (max-width: 768px) {
    /* Center the logos */
    .d-flex.mb-3 {
        justify-content: center !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
    }

    .logo {
        width: 100px !important; /* Smaller logo size for mobile */
        height: auto !important;
        margin: 5px !important;
        display: block !important;
    }

    /* Center align text and elements */
    .col-md-6.d-flex.flex-column.align-items-start.p-3 {
        align-items: center !important;
        text-align: center !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
        margin-top: 0 !important;
        width: 100% !important;
    }

    .quote-text {
        font-size: 24px !important;
        max-width: 100% !important;
        text-align: center !important;
        margin-bottom: 20px !important;
    }

    .login-card {
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 15px !important;
        width: 90% !important;
    }

    @media (max-width: 768px) {
        /* Adjust input field width */
        .form-control {
            width: 110% !important; /* Makes input field take more space */
            max-width: 400px !important; /* Extends the input field slightly */
            margin: 0 auto !important; /* Centers input field */
            font-size: 16px !important; /* Ensures readability */
            padding: 10px !important; /* Increases padding for better touch usability */
        }
    
        /* Center the input field container */
        .mb-3 {
            display: flex !important;
            justify-content: center !important;
        }
    }
    
}
