/* Login Page Styles */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    background-image: url('https://images.unsplash.com/photo-1587654780291-39c9404d746b?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(102, 126, 234, 0.65);
    z-index: 0;
}

/* Bottom White Section with Walking Children Animation */
.login-bottom-section {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 25vh;
    background: white;
    overflow: hidden;
    z-index: 0;
}

.walking-children-container {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.walking-child {
    position: absolute;
    bottom: 10px;
    width: 60px;
    height: 80px;
    animation: walkAcross 20s linear infinite;
}

.walking-child svg {
    animation: bounceWalk 0.6s ease-in-out infinite;
}

@keyframes bounceWalk {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.walking-child:nth-child(1) {
    left: -60px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.walking-child:nth-child(2) {
    left: -60px;
    animation-delay: 3s;
    animation-duration: 22s;
}

.walking-child:nth-child(3) {
    left: -60px;
    animation-delay: 6s;
    animation-duration: 20s;
}

.walking-child:nth-child(4) {
    left: -60px;
    animation-delay: 9s;
    animation-duration: 19s;
}

.walking-child:nth-child(5) {
    left: -60px;
    animation-delay: 12s;
    animation-duration: 21s;
}

@keyframes walkAcross {
    0% {
        left: -60px;
        transform: scaleX(1);
    }
    49% {
        left: calc(100% + 60px);
        transform: scaleX(1);
    }
    50% {
        left: calc(100% + 60px);
        transform: scaleX(-1);
    }
    99% {
        left: -60px;
        transform: scaleX(-1);
    }
    100% {
        left: -60px;
        transform: scaleX(1);
    }
}

/* Walking animation for arms and legs */
.walking-child svg ellipse[transform*="rotate"] {
    animation: swingArm 0.6s ease-in-out infinite;
    transform-origin: center;
}

.walking-child svg rect[transform*="rotate"] {
    animation: swingLeg 0.6s ease-in-out infinite;
    transform-origin: top center;
}

@keyframes swingArm {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(25deg); }
}

@keyframes swingLeg {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(15deg); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0) translateX(0); }
    33% { transform: translateY(-30px) translateX(30px); }
    66% { transform: translateY(30px) translateX(-30px); }
    100% { transform: translateY(0) translateX(0); }
}

.login-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 450px;
    margin-bottom: 25vh;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    background: linear-gradient(135deg, #2E7D32, #1B5E20);
    padding: 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.login-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    opacity: 0.6;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.login-header h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

.login-header h2 span {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.5);
}

.login-header .icon {
    font-size: 2.5rem;
    animation: bounce 2s infinite;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.5);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.login-logo {
    width: 40px;
    height: 40px;
    animation: bounce 2s infinite;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    object-fit: contain;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.login-body {
    padding: 2.5rem;
}

.login-form .form-label {
    font-weight: 600;
    color: #424242;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.login-form .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.login-form .form-control:focus {
    border-color: #2E7D32;
    background: white;
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.15);
    outline: none;
}

.login-form .input-group-text {
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-right: none;
    border-radius: 12px 0 0 12px;
    color: #757575;
}

.login-form .input-group .form-control {
    border-left: none;
    border-radius: 0 12px 12px 0;
}

.login-form .input-group:focus-within .input-group-text {
    border-color: #2E7D32;
    background: white;
}

.login-btn {
    background: linear-gradient(135deg, #2E7D32, #1B5E20);
    border: none;
    border-radius: 12px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.login-btn:hover::before {
    width: 300px;
    height: 300px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

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

.btn-back-home {
    color: #757575;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.btn-back-home:hover {
    color: #2E7D32;
    background: rgba(46, 125, 50, 0.1);
    text-decoration: none;
}

.btn-back-home i {
    transition: transform 0.3s ease;
}

.btn-back-home:hover i {
    transform: translateX(-3px);
}

.quick-login-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px dashed #e0e0e0;
}

.quick-login-title {
    text-align: center;
    color: #757575;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quick-login-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.quick-login-btn {
    border-radius: 12px;
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.quick-login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.quick-login-btn:hover::before {
    left: 100%;
}

.quick-login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    color: white;
}

.quick-login-btn:active {
    transform: translateY(-1px);
}

.quick-login-btn-admin {
    background: linear-gradient(135deg, #2E7D32, #1B5E20);
}

.quick-login-btn-guru {
    background: linear-gradient(135deg, #1976D2, #1565C0);
}

.quick-login-btn-wali {
    background: linear-gradient(135deg, #FF9800, #F57C00);
}

.quick-login-btn .icon {
    font-size: 1.25rem;
}

.quick-login-btn .text {
    flex: 1;
    text-align: center;
}

.quick-login-description {
    text-align: center;
    color: #9e9e9e;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    font-style: italic;
}

.alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.alert-danger {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

.alert-info {
    background: #e3f2fd;
    color: #1565c0;
    border-left: 4px solid #1565c0;
}

/* Responsive */
@media (max-width: 576px) {
    .login-body {
        padding: 2rem 1.5rem;
    }
    
    .login-header {
        padding: 1.5rem;
    }
    
    .login-header h2 {
        font-size: 1.75rem;
    }
}

