/* Modern Premium Login Styles */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.3);
    --input-bg: rgba(240, 242, 245, 0.6);
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --shadow-soft: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

body {
    background: var(--primary-gradient);
    min-height: 100vh;
    font-family: 'Nunito', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    overflow-x: hidden;
}

/* Background Shapes for Depth */
body::before, body::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    z-index: -1;
    filter: blur(80px);
}
body::before {
    background: rgba(255, 255, 255, 0.2);
    top: -100px;
    left: -100px;
}
body::after {
    background: rgba(118, 75, 162, 0.4);
    bottom: -100px;
    right: -100px;
}

.login-container {
    width: 100%;
    max-width: 1000px;
    padding: 20px;
    z-index: 1;
}

.card-login {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card-login:hover {
    transform: translateY(-5px);
}

.bg-login-image {
    background: url('../img/school_bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

.bg-login-image::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom right, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
    z-index: 1;
}

.login-brand-side {
    position: relative;
    z-index: 2;
    color: white;
}

.login-logo {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 50%;
    padding: 15px;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    object-fit: contain;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.brand-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.brand-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 300;
}

.form-section {
    padding: 50px 40px;
}

.welcome-text {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 30px;
    font-size: 1.75rem;
}

.form-control-user {
    background: var(--input-bg);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 25px 20px;
    height: auto;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.form-control-user:focus {
    background: white;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    outline: none;
}

.custom-select-user {
    background: var(--input-bg);
    border: 2px solid transparent;
    border-radius: 12px;
    height: 55px;
    padding: 0 20px;
    font-size: 1rem;
    width: 100%;
    color: var(--text-primary);
    transition: all 0.3s ease;
    cursor: pointer;
    appearance: none; /* Attempt to unify look */
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23667eea%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 12px;
}

.custom-select-user:focus {
    background-color: white;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    outline: none;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.btn-login {
    background: linear-gradient(to right, #667eea, #764ba2);
    border: none;
    border-radius: 12px;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 20px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    background: linear-gradient(to right, #5a6fd1, #6b4394);
}

.forgot-password {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-password:hover {
    color: #667eea;
    text-decoration: none;
}

.mobile-logo {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

/* Animations for form elements */
.form-group {
    opacity: 0;
    animation: slideUp 0.5s ease forwards;
}
.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.btn-login { 
    opacity: 0;
    animation: slideUp 0.5s ease forwards 0.4s; 
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
