:root {
    --primary-color: #002147;
    --accent-yellow: #FFCF00;
    --accent-red: #E30613;
    --glass-bg: rgba(255, 255, 255, 0.5);
}

body, html {
    height: 100%;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
}

.login-container {
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: url('../image/school_bg.png') no-repeat center center fixed;
    background-size: cover;
    position: relative;
    padding: 0 5%;
}

.login-container::before {
    content: '';
    position: absolute;
    top:0; left:0; right:0; bottom:0;
    background: linear-gradient(to right, rgba(0,33,71,0.6), transparent);
}

.welcome-text {
    position: relative;
    z-index: 5;
    color: #fff;
    text-align: center;
}

.welcome-text h1 {
    font-size: 80px;
    font-weight: 900;
    color: var(--accent-yellow);
    margin: 0;
    text-shadow: 4px 4px 0px #000;
    letter-spacing: -2px;
}

.welcome-text .year-text {
    font-size: 60px;
    font-weight: 800;
    color: #fff;
    margin: -10px 0 10px;
    -webkit-text-stroke: 2px var(--accent-red);
    text-shadow: 3px 3px 10px rgba(0,0,0,0.5);
}

.welcome-text .levels-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-yellow);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.login-box-wrapper {
    position: relative;
    z-index: 10;
    width: 350px;
}

.glass-box {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 3px solid var(--accent-yellow);
    border-radius: 15px;
    padding: 30px 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    text-align: center;
}

.logo-container {
    margin-bottom: 25px;
}

.login-logo-img {
    height: 100px;
}

.form-group-modern {
    margin-bottom: 15px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    padding: 10px 35px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: rgba(255,255,255,0.9);
    font-size: 14px;
    height: 40px;
    box-sizing: border-box;
}

.icon-left {
    position: absolute;
    left: 10px;
    color: #555;
    font-size: 14px;
}

.icon-right {
    position: absolute;
    right: 10px;
    color: #27ae60;
    font-size: 12px;
}

.btn-ingresar {
    width: 100%;
    background: #332d2b;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s;
}

.btn-ingresar:hover {
    background: #000;
}

.extra-actions {
    margin-top: 15px;
}

.recover-link {
    display: block;
    color: #002147;
    font-size: 12px;
    text-decoration: underline;
    font-weight: 600;
    margin-bottom: 10px;
}

.app-id {
    display: block;
    color: #555;
    font-size: 11px;
}

.footer-brand {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 10;
}

.error-msg {
    background: rgba(217, 83, 79, 0.2);
    color: #a94442;
    padding: 8px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 12px;
    font-weight: 600;
}

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
        justify-content: center;
        padding: 20px;
        gap: 30px;
    }
    
    .login-container::before {
        background: rgba(0,33,71,0.7);
    }
    
    .welcome-text h1 {
        font-size: 60px;
    }
    
    .welcome-text .year-text {
        font-size: 40px;
    }
    
    .welcome-text .levels-text {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .welcome-text h1 {
        font-size: 40px;
        text-shadow: 2px 2px 0px #000;
    }
    
    .welcome-text .year-text {
        font-size: 30px;
        -webkit-text-stroke: 1px var(--accent-red);
    }
    
    .welcome-text .levels-text {
        font-size: 14px;
        letter-spacing: 1px;
    }
    
    .login-box-wrapper {
        width: 100%;
        max-width: 320px;
    }
    
    .login-logo-img {
        height: 80px;
    }
    
    .glass-box {
        padding: 20px 15px;
    }
}

@media (max-height: 500px) {
    .login-container {
        height: auto;
        min-height: 100vh;
        padding: 40px 20px;
        overflow-y: auto;
    }
    
    body, html {
        overflow: auto;
    }
}
