/* STUDENT LOGIN PAGE STYLING */

/* ===== Base Styling ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #eef2f7;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* ===== Layout Container ===== */
.container {
    display: flex;
    width: 90%;
    max-width: 1000px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* ===== Left Section (Form) ===== */
.login-section {
    width: 50%;
    padding: 40px;
}

.logo h1 {
    font-size: 26px;
    color: #1d3557;
    margin-bottom: 25px;
    text-align: center;
}

.login-title {
    font-size: 24px;
    font-weight: 700;
    color: #1d3557;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 14px;
    color: #4e5d78;
    margin-bottom: 20px;
}

/* ===== Form Styling ===== */
.form-group {
    margin-bottom: 22px;
}

label {
    display: block;
    font-size: 14px;
    color: #1d3557;
    margin-bottom: 8px;
    font-weight: 600;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #4e5d78;
}

input {
    width: 100%;
    padding: 14px 14px 14px 45px;
    border: 1px solid #ccd3e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: #f8fafc;
}

input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    background-color: white;
}

/* ===== Buttons ===== */
.submit-btn {
    width: 100%;
    background: #3498db;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    color: #ffffff;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.3s, transform 0.2s;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.submit-btn:active {
    transform: translateY(0);
}

/* ===== Notes & Errors ===== */
.error-message {
    background: #fee;
    color: #e74c3c;
    padding: 12px;
    border-left: 4px solid #e74c3c;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-note {
    background: #e8f4fe;
    color: #1d3557;
    padding: 12px;
    border-left: 4px solid #3498db;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== Password Toggle ===== */
.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    background: none;
    border: none;
    cursor: pointer;
    transform: translateY(-50%);
    color: #4e5d78;
    font-size: 16px;
    padding: 5px;
}

.password-toggle:hover {
    color: #3498db;
}

/* ===== Right Section ===== */
.welcome-section {
    width: 50%;
    padding: 40px;
    background: linear-gradient(135deg, #1d3557 0%, #2c3e50 100%);
    color: white;
}

.welcome-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.welcome-text {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #ecf0f1;
}

.features {
    list-style: none;
    margin-bottom: 25px;
}

.features li {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.features li i {
    color: #74c69d;
    margin-top: 3px;
    flex-shrink: 0;
}

.login-instructions {
    background: rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #3498db;
}

.login-instructions h4 {
    font-size: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-instructions p {
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.5;
    color: #ecf0f1;
}

.demo-note {
    background: rgba(255, 255, 255, 0.12);
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.demo-note i {
    color: #74c69d;
    font-size: 16px;
}

/* ===== Back Link ===== */
.additional-links {
    margin-top: 20px;
    text-align: center;
}

.additional-links a {
    font-size: 14px;
    text-decoration: none;
    color: #3498db;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s;
}

.additional-links a:hover {
    color: #1d3557;
    text-decoration: underline;
}

/* ===== Modal Pop-up Styles ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    margin-bottom: 25px;
    text-align: center;
}

.modal-header h2 {
    color: #1d3557;
    margin: 0 0 10px 0;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.modal-header p {
    color: #4e5d78;
    margin: 0;
    font-size: 14px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #7f8c8d;
    transition: color 0.3s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.modal-close:hover {
    color: #e74c3c;
    background-color: #f8f9fa;
}

.profile-form .form-group {
    margin-bottom: 20px;
}

.profile-form label {
    display: block;
    margin-bottom: 8px;
    color: #1d3557;
    font-weight: 600;
    font-size: 14px;
}

.profile-form .input-with-icon {
    position: relative;
}

.profile-form .input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #4e5d78;
}

.profile-form input {
    width: 100%;
    padding: 14px 14px 14px 45px;
    border: 1px solid #ccd3e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: #f8fafc;
}

.profile-form input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    background-color: white;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit {
    background-color: #3498db;
    color: white;
    width: 100%;
    padding: 14px;
}

.btn-submit:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(41, 128, 185, 0.2);
}

.btn-submit:active {
    transform: translateY(0);
}

.required {
    color: #e74c3c;
    font-weight: bold;
}

.note {
    background-color: #f8f9fa;
    padding: 14px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 14px;
    color: #4e5d78;
    border-left: 4px solid #3498db;
    line-height: 1.5;
}

.note i {
    margin-right: 8px;
    color: #3498db;
}

/* ===== Mobile Responsive ===== */
@media screen and (max-width: 850px) {
    body {
        padding: 10px;
    }
    
    .container {
        flex-direction: column;
        width: 100%;
        max-width: 500px;
    }
    
    .login-section, .welcome-section {
        width: 100%;
        padding: 30px;
    }
    
    .login-section {
        order: 2;
    }
    
    .welcome-section {
        order: 1;
        text-align: center;
    }
    
    .features li {
        justify-content: center;
        text-align: left;
    }
    
    .login-instructions {
        text-align: left;
    }
    
    .modal-content {
        padding: 25px 20px;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
}

@media screen and (max-width: 480px) {
    .login-section, .welcome-section {
        padding: 20px;
    }
    
    .logo h1 {
        font-size: 22px;
    }
    
    .login-title {
        font-size: 20px;
    }
    
    .modal-content {
        padding: 20px 15px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 15px;
    }
}