/* Login Page Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    width: 100%;
}

/* Left Side - Branding */
.login-brand {
    background: linear-gradient(135deg, #0000FF 0%, #4169E1 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.login-brand::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

.brand-content {
    position: relative;
    z-index: 1;
    max-width: 500px;
}

.brand-logo {
    width: 180px;
    height: auto;
    margin-bottom: 2rem;
    filter: brightness(0) invert(1);
}

.brand-content h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.brand-content p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.feature-item svg {
    flex-shrink: 0;
}

.feature-item span {
    font-size: 1rem;
    font-weight: 500;
}

/* Right Side - Login Form */
.login-form-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    background: #ffffff !important;
    /* Force white background */
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

/* Blurred Blue Flow Effect */
.login-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 255, 0.08) 0%, transparent 100%);
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
}

.login-form-wrapper {
    width: 100%;
    max-width: 650px;
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.form-header {
    margin-bottom: 2.5rem;
}

.form-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}

.form-header p {
    color: #6b7280;
    font-size: 0.95rem;
}

/* Alert */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-error {
    background: #fee;
    color: #c00;
    border: 1px solid #fcc;
}

.alert svg {
    flex-shrink: 0;
}

/* Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-group label {
    font-weight: 600;
    color: #374151;
    font-size: 1rem;
}

.form-group input {
    padding: 1.1rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #0000FF;
    box-shadow: 0 0 0 3px rgba(0, 0, 255, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: #6b7280;
}

.checkbox-label input[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
}

.forgot-link {
    color: #0000FF;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Login Button */
.btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.2rem;
    background: #0000FF;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: #0000CC;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 255, 0.4);
}

.btn-login svg {
    transition: transform 0.3s ease;
}

.btn-login:hover svg {
    transform: translateX(5px);
}

/* Responsive Design */
/* Wave Animation */
.login-brand {
    position: relative;
    overflow: hidden;
}

/* Wave Animation Separator (JS Canvas Based) */
.wave-separator {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    z-index: 20;
    pointer-events: none;
    overflow: visible;
    /* Allow wave to flow */
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .login-container {
        grid-template-columns: 1fr;
    }

    .login-brand {
        min-height: 200px;
        padding: 4rem 2rem;
        /* More space for wave */
        display: flex;
        justify-content: center;
        align-items: center;
        /* Re-enable overflow hidden for mobile to contain pulse if needed */
        overflow: hidden;
    }

    .wave-separator {
        width: 100%;
        height: 60px;
        top: auto;
        bottom: -1px;
        right: 0;
        left: 0;
    }

    .wave-separator svg {
        width: 100%;
        height: 100%;
        transform: rotate(0deg);
        top: 0;
        right: 0;
    }

    .login-form-container {
        padding: 2rem 1.5rem;
        min-height: auto;
        border-radius: 20px 20px 0 0;
        margin-top: -20px;
        background-color: #ffffff;
        /* Add subtle pattern to fill space */
        background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
        background-size: 20px 20px;
    }

    .login-form-container::before {
        display: none;
        /* Remove the blue blur on mobile as it might crowd it */
    }

    .login-form-wrapper {
        padding: 1rem 0;
    }

    .form-header h2 {
        font-size: 1.8rem;
    }

    .form-group input,
    .btn-login {
        padding: 0.9rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .form-header h2 {
        font-size: 1.75rem;
    }

    .brand-content h1 {
        font-size: 2rem;
    }
}