/* Login Page Styles - Split Screen Design */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow: hidden;
}

.login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    position: relative;
}

/* Left Side - Image Section (75%) */
.login-image-section {
    width: 75%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animated background circles - only show when no background image */
.login-image-section:not([style*="background-image"])::before,
.login-image-section:not([style*="background-image"])::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.login-image-section:not([style*="background-image"])::before {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.login-image-section:not([style*="background-image"])::after {
    width: 500px;
    height: 500px;
    bottom: -150px;
    right: -150px;
    animation-delay: 3s;
}

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

/* Separator Line with Pulse Dot */
.login-separator {
    position: absolute;
    left: 75%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, 
                rgba(135, 206, 235, 0) 0%,
                rgba(135, 206, 235, 0.3) 20%,
                rgba(135, 206, 235, 0.6) 45%,
                rgba(135, 206, 235, 1) 50%,
                rgba(135, 206, 235, 0.6) 55%,
                rgba(135, 206, 235, 0.3) 80%,
                rgba(135, 206, 235, 0) 100%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.separator-dot {
    width: 20px;
    height: 20px;
    background: #4A90E2;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 0 rgba(74, 144, 226, 0.7),
                0 0 20px rgba(74, 144, 226, 0.5),
                0 0 40px rgba(74, 144, 226, 0.3);
    animation: pulse-dot 3s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(74, 144, 226, 0.7),
                    0 0 20px rgba(74, 144, 226, 0.5),
                    0 0 40px rgba(74, 144, 226, 0.3);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 0 15px rgba(74, 144, 226, 0),
                    0 0 30px rgba(74, 144, 226, 0.8),
                    0 0 60px rgba(74, 144, 226, 0.5);
    }
}

/* Right Side - Login Form Section (25%) */
.login-form-section {
    width: 25%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.login-box {
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header .logo-circle {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.login-header .logo-circle img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(102, 126, 234, 0.3));
}

.login-header .logo-circle .material-symbols-outlined {
    font-size: 40px;
    color: #667eea;
    filter: drop-shadow(0 5px 15px rgba(102, 126, 234, 0.3));
}

.form-group {
    margin-bottom: 20px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 20px;
    pointer-events: none;
}

.form-group input {
    width: 100%;
    padding: 10px 12px 10px 44px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #4A90E2;
}

.remember-me label {
    font-size: 13px;
    color: #666;
    cursor: pointer;
    user-select: none;
}

.btn-primary {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(74, 144, 226, 0.3);
}

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

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.error-message {
    background-color: #fee;
    color: #c33;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    border-left: 4px solid #c33;
}

.login-footer {
    margin-top: 30px;
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
}

.login-footer .copyright {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.login-footer .footer-links {
    font-size: 11px;
    color: #bbb;
}

/* Responsive */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }
    
    .login-image-section {
        width: 100%;
        min-height: 40vh;
    }
    
    .login-form-section {
        width: 100%;
        min-height: 60vh;
    }
}

