/* Login Page Split Screen Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
}

/* Allow scrolling on mobile */
@media (max-width: 992px) {
    body, html {
        overflow: auto;
        height: auto;
        min-height: 100%;
    }
}

.login-container {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* Left Side - Clean White Background with Yellow Accents */
.login-left {
    flex: 1;
    background: linear-gradient(135deg, #ffffff 0%, #fffef5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

/* Vibrant yellow animated background elements */
.login-left::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: 
        radial-gradient(circle at 25% 35%, rgba(255, 215, 0, 0.25) 0%, transparent 35%),
        radial-gradient(circle at 75% 65%, rgba(255, 193, 7, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(255, 235, 59, 0.18) 0%, transparent 45%);
    animation: yellowGlow 12s ease-in-out infinite;
    z-index: 0;
    opacity: 0.35;
}

@keyframes yellowGlow {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.35;
    }
    50% {
        transform: translate(20px, -20px) scale(1.1);
        opacity: 0.45;
    }
}

/* Floating yellow particles - more visible */
.login-left::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle, rgba(255, 215, 0, 0.6) 3px, transparent 3px),
        radial-gradient(circle, rgba(255, 193, 7, 0.5) 2px, transparent 2px),
        radial-gradient(circle, rgba(255, 235, 59, 0.55) 2.5px, transparent 2.5px);
    background-size: 120px 120px, 180px 180px, 100px 100px;
    background-position: 0 0, 60px 80px, 150px 300px;
    animation: floatParticles 25s linear infinite;
    z-index: 1;
    opacity: 0.30;
}

@keyframes floatParticles {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-120px);
    }
}

.brand-content {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.brand-image-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 0 3px rgba(139, 69, 177, 0.2);
    border: 3px solid rgba(139, 69, 177, 0.3);
    background: #ffffff;
    animation: imageFloat 4s ease-in-out infinite;
}

@keyframes imageFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.02);
    }
}

.login-brand-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}


/* Right Side - White Login Form */
.login-right {
    flex: 1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.login-form-container {
    width: 100%;
    max-width: 450px;
    background: white;
    padding: 50px 45px;
    border-radius: 24px;
    position: relative;
    z-index: 10;
    box-shadow: 0 20px 60px rgba(255, 255, 255, 0.1);
}

/* Gradient Border Effect */
.login-form-container::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 50%, #ffffff 100%);
    border-radius: 24px;
    z-index: -1;
    opacity: 0.6;
}

.login-form-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto 25px;
    padding: 8px 15px;
    background: linear-gradient(135deg, #f8f9fd 0%, #e8eaf6 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
}

.egms-badge-small {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    padding: 8px 24px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 25px;
    letter-spacing: 2.5px;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.login-title {
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 40px;
}

.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-control-custom {
    width: 100%;
    padding: 16px 20px;
    font-size: 1rem;
    border: 2px solid #e8e8ed;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
    background: #f8f9fd;
    color: #333;
}

.form-control-custom:focus {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.08);
}

.password-group {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px 10px;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #0066ff;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #0066ff;
}

.remember-me label {
    font-size: 0.95rem;
    color: #666;
    cursor: pointer;
    margin: 0;
}

.forgot-password {
    color: #ffb700;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #ffa000;
    text-decoration: underline;
}

.btn-signin {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.3);
}

.btn-signin:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.4);
    background: linear-gradient(135deg, #0052cc 0%, #003d99 100%);
}

.btn-signin:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    
    .login-left {
        min-height: 35vh;
        padding: 40px 30px;
        flex: none;
    }
    
    .brand-title {
        font-size: 2rem;
    }
    
    .egms-badge {
        width: 90px;
        height: 90px;
        line-height: 86px;
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .card-graphic {
        width: 200px;
        height: 130px;
    }
    
    .card-wave {
        font-size: 2rem;
    }
    
    .features {
        gap: 25px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .feature-text {
        font-size: 0.9rem;
    }
    
    .login-right {
        padding: 40px 30px;
        flex: none;
    }
    
    .login-form-container {
        padding: 40px 35px;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .login-left {
        padding: 25px 15px;
        min-height: 30vh;
    }
    
    .brand-image-container {
        max-width: 350px;
    }
    
    .login-brand-logo {
        height: 60px;
        padding: 10px 18px;
        margin-bottom: 20px;
    }
    
    .brand-title {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }
    
    .egms-badge {
        width: 70px;
        height: 70px;
        line-height: 66px;
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .features-container {
        margin-top: 30px;
    }
    
    .nfc-card-visual {
        margin-bottom: 30px;
    }
    
    .card-graphic {
        width: 160px;
        height: 100px;
    }
    
    .card-chip {
        width: 40px;
        height: 30px;
        top: 15px;
        left: 15px;
    }
    
    .card-wave {
        font-size: 1.5rem;
        bottom: 15px;
        right: 15px;
    }
    
    .login-right {
        padding: 25px 15px;
    }
    
    .login-form-container {
        padding: 30px 20px;
        max-width: 100%;
    }
    
    .login-form-logo {
        height: 50px;
        margin-bottom: 20px;
    }
    
    .login-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .form-control-custom {
        padding: 14px 18px;
        font-size: 0.95rem;
    }
    
    .btn-signin {
        padding: 14px;
        font-size: 1rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
}

.wave-divider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 5;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-image: url("data:image/svg+xml;utf8,<svg width='100%' height='100%' viewBox='0 0 1440 320'xmlns='http://www.w3.org/2000/svg'><path fill='%23fffef5' fill-opacity='1' d='M0,160L80,181.3C160,203,320,245,480,250.7C640,256,800,224,960,202.7C1120,181,1280,171,1360,165.3L1440,160L1440,0L0,0Z'></path></svg>");
}


