/* public/css/auth.css */
/* A professional, unified style for all Authentication pages. */

/* --- Main Page Layout --- */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #F7F9FB; /* Neutral Light Gray background */
    /* height: 100vh; */
    display: flex;
    justify-content: center;
    align-items: center;
    /* overflow: hidden; */
    padding: 40px 0;
}

.auth-container {
    display: flex;
    width: 90%;
    max-width: 900px;
    /* height: 90%; */
    min-height: 600px;
    /* max-height: 600px; */
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* overflow: hidden; */
}

/* --- Left Side: Form --- */
/* .auth-left {
    flex: 1 1 55%; 
     padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    
} */

.auth-left {
    flex: 1 1 55%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    /* REMOVE overflow-y: auto; from here */
}

.auth-left h2 {
    font-size: 26px;
    font-weight: 700;
    color: #2E2E2E; /* Dark Charcoal */
    margin: 0 0 8px 0;
    text-align: center;
}
.auth-left p {
    font-size: 15px;
    color: #6c757d;
    margin: 0 0 30px 0;
    text-align: center;
}
.auth-left form {
    width: 100%;
}

/* Form Inputs */
.auth-left input[type="text"],
.auth-left input[type="email"],
.auth-left input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 18px;
    border-radius: 6px;
    border: 1px solid #ced4da;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}
.auth-left input:focus {
    outline: none;
    border-color: #0056D2; /* Royal Blue */
    box-shadow: 0 0 0 3px rgba(0, 86, 210, 0.15);
}

/* Password visibility toggle */
.password-wrapper {
    position: relative;
    width: 100%;
}
.password-wrapper i {
    position: absolute;
    right: 15px;
    top: 35%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    padding-top: 5px; /* Fine-tune vertical alignment */
}

/* Checkbox & Options */
.options-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}
.options-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
    cursor: pointer;
}
.options-row input[type="checkbox"] {
    accent-color: #0056D2;
}

/* Submit Button */
.auth-left button[type="submit"] {
    width: 100%;
    background-color: #0056D2; /* Royal Blue */
    color: white;
    padding: 12px 0;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.auth-left button[type="submit"]:hover {
    background-color: #0F4C81; /* Navy Blue */
}

/* Bottom Links (Sign up, Forgot password) */
.signup-row {
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: #555;
    margin-top: 25px;
}
.signup-row a, .forgot-password {
    font-weight: 600;
    color: #0056D2;
    text-decoration: none;
}
.signup-row a:hover, .forgot-password:hover {
    text-decoration: underline;
}

/* --- Right Side: Branding Panel --- */
.auth-right {
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
    background-color: #0F4C81; /* Primary Navy Blue */
    color: #FFFFFF;
}
.auth-logo {
    max-width: 200px;
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
}
.auth-right h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
}
.auth-right p {
    font-size: 15px;
    font-weight: 400;
    color: #E8F1FA; /* Light Blue muted text */
    line-height: 1.6;
}

/* --- Alerts --- */
.alert {
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-weight: 500;
    font-size: 14px;
}
.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c2c7;
}
.alert-danger ul {
    padding-left: 20px;
    margin: 0;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    body {
        height: auto;
        padding: 30px 15px;
        overflow: auto;
    }
    .auth-container {
        flex-direction: column;
        height: auto;
        max-height: none;
        width: 100%;
    }
    .auth-right {
        display: none; /* Hide branding panel on small screens for focus */
    }
    .auth-left {
        flex-basis: 100%;
        padding: 30px 20px;
    }
}