/* --- GLOBAL RESET --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    height: 100vh;
    overflow: hidden; 
}

.split-screen-container { display: flex; height: 100vh; width: 100%; }

/* --- LEFT SIDE (Branding) --- */
.left-pane {
    width: 50%;
    /* Points back to your correct images folder */
    background: url('../images/SOUTHERNBAPTISTCOLLEGELOGO.jpg') no-repeat center center/cover;
    position: relative;
}

.overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 86, 179, 0.85); /* New Blue Overlay */
    display: flex; justify-content: center; align-items: center;
    color: white; text-align: center; padding: 40px;
}

.brand-display .logo-icon { font-size: 4rem; margin-bottom: 20px; color: #ffc107; }
.brand-display h1 { font-family: 'Playfair Display', serif; font-size: 3rem; margin-bottom: 10px; }

/* --- RIGHT SIDE (Form) --- */
.right-pane {
    width: 50%; background: #f4f8fb; height: 100vh; 
    overflow-y: auto; display: flex; flex-direction: column; 
}

.login-card {
    background: white; width: 100%; max-width: 450px; padding: 40px;
    border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border-top: 4px solid #ffc107;
    margin: auto; margin-top: 40px; margin-bottom: 40px; 
}

.title { font-family: 'Playfair Display', serif; font-size: 2rem; color: #0056b3; margin-bottom: 5px; }
.subtitle { color: #777; font-size: 0.9rem; margin-bottom: 25px; }

/* --- FORM INPUTS --- */
.input-wrapper { margin-bottom: 15px; }
.input-wrapper label { display: block; font-size: 0.85rem; color: #555; margin-bottom: 5px; font-weight: 500; }
.input-group { position: relative; display: flex; align-items: center; }

.input-group .icon { position: absolute; left: 15px; color: #0056b3; z-index: 2; }

/* --- ICON OVERLAP FIX --- */
.input-group input, 
.input-group select {
    width: 100%;
    /* The 45px padding on the left pushes the text completely past the icon */
    padding: 12px 15px 12px 45px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border 0.3s;
    background-color: transparent;
    -webkit-appearance: none; 
    -moz-appearance: none;
    appearance: none;
}

/* Custom dropdown arrow to replace the default one we hid */
.input-group select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
    cursor: pointer;
}

.input-group input:focus, .input-group select:focus { border-color: #0056b3; box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.15);}

.toggle-password { position: absolute; right: 15px; color: #888; cursor: pointer; transition: color 0.3s; z-index: 2; }
.toggle-password:hover { color: #0056b3; }

.actions { display: flex; align-items: center; margin-bottom: 25px; }
.actions input[type="checkbox"] { margin-right: 8px; width: 16px; height: 16px; accent-color: #0056b3; }

.btn-login { width: 100%; padding: 14px; background-color: #0056b3; color: white; border: none; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background 0.3s; }
.btn-login:hover { background-color: #004085; }

.footer-links { margin-top: 20px; text-align: center; font-size: 0.9rem; }
.footer-links a { color: #0056b3; text-decoration: none; font-weight: 600; }
.back-home { display: block; margin-top: 10px; color: #888; font-size: 0.85rem; }

/* --- MODAL (Terms) --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 1000; justify-content: center; align-items: center; }
.modal-box { background: white; width: 90%; max-width: 500px; border-radius: 12px; text-align: center; position: relative; box-shadow: 0 15px 40px rgba(0,0,0,0.2); overflow: hidden; }
.modal-header { background: #0056b3; color: white; padding: 15px; border-bottom: 3px solid #ffc107;}
.modal-header h2 { font-size: 1.2rem; margin: 0; color: white; }
.close-modal { position: absolute; top: 10px; right: 15px; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }
.btn-submit { padding: 10px 30px; background-color: #0056b3; color: white; border: none; border-radius: 20px; cursor: pointer; font-weight: 600; }

/* --- RESPONSIVE (Mobile) --- */
@media (max-width: 768px) {
    .split-screen-container { flex-direction: column; height: auto; }
    .left-pane { width: 100%; height: 200px; }
    .right-pane { width: 100%; height: auto; padding: 20px; overflow-y: visible; }
    body { overflow-y: auto; }
}