@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #002147;
    --accent-yellow: #FFCE00;
    --accent-red: #E30613;
    --text-dark: #1e293b;
    --text-light: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: 'Outfit', sans-serif;
    background-color: var(--primary);
    overflow-x: hidden;
}

.login-container {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    background: url('../image/school_bg.png') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 33, 71, 0.9) 0%, rgba(0, 33, 71, 0.6) 100%);
    z-index: 1;
}

.login-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-evenly;
    padding: 2rem;
    gap: 2rem;
}

/* Welcome Section */
.welcome-section {
    color: white;
    max-width: 650px;
    animation: fadeInUp 0.8s ease-out;
}

.brand-badge {
    display: inline-block;
    background: var(--accent-yellow);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: clamp(0.7rem, 2vw, 0.85rem);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 206, 0, 0.3);
}

.welcome-section h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 0.95;
    margin-bottom: 0.5rem;
    letter-spacing: -2px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.year-text {
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--accent-yellow);
    margin-bottom: 1rem;
}

.levels-text {
    font-size: clamp(0.9rem, 3vw, 1.25rem);
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Glass Card */
.login-box-container {
    perspective: 1000px;
    width: 100%;
    max-width: 420px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: clamp(1.5rem, 5vw, 3rem) clamp(1rem, 5vw, 2.5rem);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    background: white;
    padding: 1rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.login-logo-img {
    height: clamp(40px, 8vw, 60px);
    width: auto;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.login-header p {
    color: #64748b;
    font-size: 0.9rem;
}

/* Form Styles */
.modern-form .form-group {
    margin-bottom: 1.5rem;
}

.modern-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
    margin-left: 0.25rem;
}

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

.input-container i {
    position: absolute;
    left: 1.25rem;
    color: #94a3b8;
    transition: color 0.3s;
}

.input-container input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 3rem;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: white;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
}

.input-container input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 33, 71, 0.1);
}

.input-container input:focus + i {
    color: var(--primary);
}

.btn-submit {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s;
    margin-top: 2rem;
}

.btn-submit:hover {
    background: #003366;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 33, 71, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

.form-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.btn-link {
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s;
}

.btn-link:hover {
    opacity: 0.7;
}

/* Error Message */
.error-msg {
    background: #fef2f2;
    border-left: 4px solid var(--accent-red);
    color: #991b1b;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Footer Info */
.footer-info {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem 1rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Media Queries */
@media (max-width: 1024px) {
    .login-content {
        flex-direction: column;
        justify-content: center;
        gap: 3rem;
        padding: 4rem 2rem;
    }
    
    .welcome-section {
        text-align: center;
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .login-content {
        padding: 3rem 1rem;
    }
    
    .glass-card {
        border-radius: 20px;
    }
    
    .welcome-section {
        margin-bottom: 1rem;
    }
}

@media (max-height: 700px) and (min-width: 1025px) {
    .login-content {
        padding: 1rem 2rem;
    }
    
    .welcome-section h1 {
        font-size: 3.5rem;
    }
}
