#section-login {
    --primary-dark: #1A3A3F;
    --primary-medium: #3A6666;
    --primary-light: #5B8C8C;
    --accent-color: #D9B779;
    --accent-light: #E8D4B0;
    --text-color: #333333;
    --text-light: #5F7275;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
    overflow: hidden;
    font-family: 'Open Sans', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-color);
}

/* Security decorative elements */
#section-login .security-decoration {
    position: absolute;
    z-index: 0;
    opacity: 0.08;
}

#section-login .security-decoration:nth-child(1) {
    top: 10%;
    left: 5%;
    font-size: 5rem;
    color: var(--primary-medium);
    animation: floatLock 8s infinite ease-in-out;
}

#section-login .security-decoration:nth-child(2) {
    bottom: 15%;
    right: 10%;
    font-size: 4rem;
    color: var(--accent-color);
    animation: floatShield 10s infinite ease-in-out;
    animation-delay: 2s;
}

#section-login .security-decoration:nth-child(3) {
    top: 60%;
    left: 15%;
    font-size: 3.5rem;
    color: var(--primary-light);
    animation: floatFingerprint 12s infinite ease-in-out;
    animation-delay: 4s;
}

@keyframes floatLock {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes floatShield {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.1); }
}

@keyframes floatFingerprint {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(10px, -10px) rotate(5deg); }
    50% { transform: translate(0, -20px) rotate(0deg); }
    75% { transform: translate(-10px, -10px) rotate(-5deg); }
}

/* Two-column layout */
#section-login .login-container {
    display: flex;
    width: 100%;
    max-width: 900px;
    background-color: var(--bg-white);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.8s 0.3s forwards;
}

@keyframes fadeInUp {
    to { transform: translateY(0); opacity: 1; }
}

#section-login .login-image {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

#section-login .login-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1614064548237-096f735f344f?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') center/cover;
    opacity: 0.15;
    animation: stripesAnimation 30s linear infinite;
}

@keyframes stripesAnimation {
    0% { background-position: 0 0; }
    100% { background-position: 100% 100%; }
}

#section-login .login-image-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

#section-login .login-image-content img {
    width: 180px;
    margin-bottom: 20px;
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.3));
}

#section-login .login-image-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#section-login .login-image-content p {
    font-size: 0.9rem;
    opacity: 0.9;
}

#section-login .login-form {
    flex: 1;
    padding: 40px;
    position: relative;
}

#section-login .login-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-color), #e0a348);
}

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

#section-login .login-header img {
    height: 50px;
    margin-bottom: 15px;
}

#section-login .login-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

#section-login .login-header p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Improved role switcher */
#section-login .role-switch {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
}

#section-login .role-switch input {
    display: none;
}

#section-login .role-switch label {
    display: flex;
    width: 100%;
    max-width: 300px;
    height: 50px;
    background-color: var(--bg-light);
    border-radius: 25px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

#section-login .role-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: all 0.3s ease;
    color: var(--text-light);
    font-weight: 600;
}

#section-login .role-switch .slider {
    position: absolute;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-medium), var(--primary-dark));
    border-radius: 25px;
    left: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#section-login .role-switch input:checked + label .slider {
    left: 50%;
    background: linear-gradient(135deg, var(--accent-color), #e0a348);
}

#section-login .role-switch input:checked + label .role-option:first-child {
    color: white;
}

#section-login .role-switch input:not(:checked) + label .role-option:last-child {
    color: var(--text-light);
}

/* CORRECTED Material Design inputs */
#section-login .form-group {
    position: relative;
    margin-bottom: 35px;
    padding-top: 10px;
}

#section-login .form-control {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--text-light);
    border-radius: 0;
    padding-left: 30px;
    height: 40px;
    width: 100%;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: none;
    color: gray !important;
}

#section-login .form-control:focus {
    outline: none;
    border-bottom: 2px solid var(--primary-medium);
}

#section-login .input-icon {
    position: absolute;
    left: 0;
    top: 12px;
    color: var(--text-light);
    transition: all 0.3s;
}

#section-login .form-control:focus ~ .input-icon {
    color: var(--primary-medium);
}

#section-login .floating-label {
    position: absolute;
    left: 30px;
    top: 12px;
    color: var(--text-light);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    font-size: 1rem;
}

#section-login .form-control:focus ~ .floating-label,
#section-login .form-control:not(:placeholder-shown) ~ .floating-label {
    transform: translateY(-22px) scale(0.85);
    color: var(--primary-medium);
    left: 0;
}

/* Improved button */
#section-login .btn-login {
    background: linear-gradient(135deg, var(--primary-medium), var(--primary-dark));
    color: white;
    border: none;
    padding: 12px;
    border-radius: 25px;
    width: 100%;
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(26, 58, 63, 0.2);
    position: relative;
    overflow: hidden;
}

#section-login .btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 58, 63, 0.3);
    color: white;
}

#section-login .btn-login:active {
    transform: translateY(0);
}

#section-login .btn-login::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s;
}

#section-login .btn-login:hover::after {
    left: 100%;
}

/* Card footer */
#section-login .login-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

#section-login .login-footer a {
    color: var(--primary-medium);
    text-decoration: none;
    transition: all 0.3s;
}

#section-login .login-footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Entry effects for elements */
#section-login .form-group,
#section-login .btn-login,
#section-login .login-footer {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s forwards;
}

#section-login .form-group {
    animation-delay: 0.5s;
}

#section-login .btn-login {
    animation-delay: 0.7s;
}

#section-login .login-footer {
    animation-delay: 0.9s;
}

/* Responsive */
@media (max-width: 768px) {
    #section-login .login-container {
        flex-direction: column;
    }
    
    #section-login .login-image {
        padding: 30px;
    }
    
    #section-login .login-image-content img {
        width: 120px;
    }
    
    #section-login .login-form {
        padding: 30px;
    }
    
    #section-login .role-switch label {
        height: 45px;
    }
}