/* Modern Login Page Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-wrapper {
    width: 100%;
    max-width: 1200px;
    min-height: 600px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
}

/* Left side with background image */
.login-left {
    flex: 1;
    position: relative;
    background-image: url('../assets/images/login_bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #fff;
}

.login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(128, 0, 0, 0.7);
}

.login-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.login-content h1 {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.login-content p {
    font-size: 1.1em;
    opacity: 0.9;
}

/* Right side with login form */
.login-right {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
}

.logos-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.school-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.login-form-container {
    width: 100%;
    max-width: 400px;
}

.login-form-container h2 {
    font-size: 2em;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.login-subtitle {
    color: #666;
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.input-group:focus-within {
    border-color: #800000;
    box-shadow: 0 0 0 4px rgba(128, 0, 0, 0.1);
}

.input-group-text {
    background: transparent;
    border: none;
    color: #666;
    padding: 12px 15px;
}

.input-group input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    outline: none;
    font-size: 14px;
    color: #333;
    background: transparent;
}

.input-group input::placeholder {
    color: #999;
}

.password-toggle {
    cursor: pointer;
    user-select: none;
}

.password-toggle:hover {
    color: #800000;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #800000;
}

.remember-me label {
    font-size: 14px;
    color: #666;
    user-select: none;
}

.forgot-password {
    font-size: 14px;
    color: #800000;
    text-decoration: none;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: #600000;
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: #800000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 25px;
}

.btn-login:hover {
    background: #600000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(128, 0, 0, 0.3);
}

.login-footer {
    text-align: center;
}

.login-footer p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.login-footer a {
    color: #800000;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-footer a:hover {
    color: #600000;
    text-decoration: underline;
}

.btn-return {
    display: inline-block;
    padding: 8px 20px;
    background: #f5f5f5;
    color: #333 !important;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-return:hover {
    background: #e5e5e5;
    text-decoration: none !important;
}

/* Alert styles */
.alert {
    border-radius: 8px;
    margin-bottom: 25px;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

/* Responsive Design */
@media (max-width: 991px) {
    .login-wrapper {
        flex-direction: column;
        max-width: 600px;
    }

    .login-left {
        display: none;
    }

    .login-right {
        padding: 30px 20px;
    }

    .school-logo {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .login-right {
        padding: 20px 15px;
    }

    .school-logo {
        height: 50px;
    }

    .login-form-container h2 {
        font-size: 1.8em;
    }

    .form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}