/* ===================================================================
   Authentication Page Styles (Login & Register)
=================================================================== */

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f7f6;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 1rem;
}

.auth-wrapper {
    display: flex;
    width: 100%;
    max-width: 1000px;
    min-height: 600px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Important for rounded corners on children */
}

/* --- Image Side (Left) --- */
.auth-image-side {
    flex: 0 0 50%; /* Takes up 50% of the width, doesn't grow or shrink */
    background-image: url('/img/hiaces.jpeg');
    background-size: cover;
    background-position: center;
}

/* --- Form Side (Right) --- */
.auth-form-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 3rem;
}

.auth-form-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.auth-logo {
    display: block;
    margin-bottom: 2rem;
    max-height: 45px;
}

.auth-form-container h1 {
    color: #212529;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-form-container .lead {
    color: #6c757d;
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* --- Form Elements --- */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #da9a28; /* Your primary color */
    box-shadow: 0 0 0 3px rgba(218, 154, 40, 0.2);
}

.form-button {
    width: 100%;
    padding: 1rem;
    background-color: #da9a28; /* Your primary color */
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.form-button:hover {
    background-color: #c78b20; /* A darker shade of your primary color */
}

.form-switch-link {
    text-align: center;
    margin-top: 1.5rem;
    color: #6c757d;
}

.form-switch-link a {
    color: #da9a28; /* Your primary color */
    font-weight: 600;
    text-decoration: none;
}

/* --- Session Messages --- */
.message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.message.success {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.message.error {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

/* ===================================================================
   RESPONSIVE DESIGN for Mobile & Tablets
=================================================================== */
@media (max-width: 991px) {
    .auth-image-side {
        display: none; /* Hide the image on smaller screens */
    }

    .auth-wrapper {
        flex-direction: column;
        min-height: auto;
        box-shadow: none;
        border-radius: 0;
    }

    .auth-form-side {
        padding: 2rem 1.5rem;
    }
}