/* Custom Login Styles */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

.bg-school {
    background: 
        linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    position: relative;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
}

.bg-school::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 30s ease-in-out infinite;
    z-index: 0;
}

@keyframes grid-move {
    0%, 100% { 
        transform: translate(0, 0); 
        opacity: 0.5;
    }
    50% { 
        transform: translate(25px, 25px); 
        opacity: 0.2;
    }
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.floating-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    animation: modern-float 25s ease-in-out infinite;
}

.floating-shapes .shape:nth-child(1) {
    width: 150px;
    height: 150px;
    left: 15%;
    top: 20%;
    animation-delay: 0s;
}

.floating-shapes .shape:nth-child(2) {
    width: 200px;
    height: 200px;
    right: 10%;
    top: 60%;
    animation-delay: 8s;
}

.floating-shapes .shape:nth-child(3) {
    width: 120px;
    height: 120px;
    left: 60%;
    top: 10%;
    animation-delay: 16s;
}

@keyframes modern-float {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-20px) scale(1.1);
        opacity: 0.4;
    }
}

.glass-effect {
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 1200px;
}

.logo-animation {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-10px); 
    }
}

.gradient-text {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.input-focus {
    transition: all 0.3s ease;
    background-color: white !important;
}

.input-focus:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15);
    background-color: white !important;
}

/* Left side text styling */
.left-side-text {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Password toggle button styles */
#togglePassword {
    transition: all 0.2s ease;
    border-radius: 0.375rem;
}

#togglePassword:hover {
    background-color: rgba(243, 244, 246, 0.8);
}

#togglePassword:focus {
    outline: none;
    background-color: rgba(243, 244, 246, 0.8);
}

/* Responsive Design */
@media (max-width: 1023px) {
    .glass-effect {
        margin: 1rem;
        max-width: 95%;
    }
    
    .floating-shapes .shape {
        display: none; /* Hide floating shapes on smaller screens */
    }
}

@media (max-width: 640px) {
    .logo-animation {
        height: 72px;
        width: 72px;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .glass-effect {
        max-width: 90%;
    }
}

@media (min-width: 769px) {
    .glass-effect {
        max-width: 1200px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .glass-effect {
        background: rgba(255, 255, 255, 1);
        border: 1px solid rgba(255, 255, 255, 0.5);
    }
}