/* Admin Login Styles */
.admin-login {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.admin-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="admin-grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.03)"/><circle cx="10" cy="50" r="0.5" fill="rgba(255,255,255,0.03)"/><circle cx="90" cy="30" r="0.5" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23admin-grain)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    max-width: 450px;
    width: 100%;
    position: relative;
    z-index: 2;
    overflow: hidden;
    margin: 2rem;
}

.login-header {
    background: var(--gradient);
    padding: 2rem 2rem 1.5rem;
    text-align: center;
    color: white;
}

.school-logo .login-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.login-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.login-header p {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

.login-form-container {
    padding: 2.5rem 2rem;
}

.login-form h2 {
    color: var(--dark);
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-subtitle {
    text-align: center;
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(12, 74, 110, 0.1);
}

.password-input-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--primary);
}

.login-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.login-footer p {
    color: #6b7280;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.error-message i {
    margin-top: 0.125rem;
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-login {
        padding: 1rem 0;
    }

    .login-container {
        margin: 1rem;
        max-width: none;
    }

    .login-header {
        padding: 1.5rem 1.5rem 1rem;
    }

    .school-logo .login-logo {
        width: 60px;
        height: 60px;
    }

    .login-header h1 {
        font-size: 1.5rem;
    }

    .login-form-container {
        padding: 2rem 1.5rem;
    }

    .login-form h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .login-form-container {
        padding: 1.5rem 1rem;
    }

    .form-group input {
        padding: 0.75rem;
    }

    .login-btn {
        padding: 0.875rem;
        font-size: 1rem;
    }
}

/* Server Warning Styles */
.server-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.1);
}

.warning-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.warning-content i {
    color: #d97706;
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.warning-text strong {
    color: #92400e;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.warning-text p {
    color: #92400e;
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.server-instructions {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid #d97706;
}

.server-instructions p {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    color: #92400e;
}

.server-instructions code {
    background: #374151;
    color: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
    display: block;
    margin: 0.25rem 0;
    line-height: 1.4;
}
