/* Login Page Styles */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    z-index: 100;
    pointer-events: auto; /* Ensure container is clickable */
}

.login-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04);
    overflow: hidden;
}

.login-header {
    text-align: center;
    padding: 2rem 2rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.logo i {
    font-size: 3rem;
    color: #fbbf24;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.login-subtitle {
    font-size: 0.875rem;
    opacity: 0.9;
    margin: 0;
}

.login-form {
    padding: 2rem;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    transition: var(--transition);
    pointer-events: auto; /* Ensure inputs are clickable */
    position: relative;
    z-index: 10;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.password-input {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 0.875rem;
    pointer-events: auto; /* Ensure toggle is clickable */
    z-index: 15;
}

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

.login-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    padding: 0.875rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    pointer-events: auto; /* Ensure button is clickable */
    position: relative;
    z-index: 10;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.login-footer {
    padding: 1rem 2rem 2rem;
    text-align: center;
    background-color: var(--gray-50);
}

.login-help {
    font-size: 0.75rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-links {
    display: flex;
    justify-content: center;
}

.admin-login-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.admin-login-link:hover {
    background-color: var(--gray-100);
    text-decoration: none;
}

/* Background Animation */
.login-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none; /* Prevent background from blocking interactions */
}

.background-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
    pointer-events: none; /* Ensure shapes don't block interactions */
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

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

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

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

    .login-form {
        padding: 1.5rem;
    }

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

    .logo i {
        font-size: 2.5rem;
    }

    .logo h1 {
        font-size: 1.25rem;
    }
}
