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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
                url('https://www.ucinmedica.com/wp-content/uploads/2020/08/consultorio-medico.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.main-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    max-width: 1200px;
    width: 100%;
    min-height: 600px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
}

.main-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    z-index: -1;
}

.info-panel {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.logo-section {
    margin-bottom: 40px;
}


.brand-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #fff, #e0f2f1);
    -webkit-text-fill-color: transparent;
}

.brand-subtitle {
    font-size: 18px;
    opacity: 0.9;
    font-weight: 400;
}

.login-panel {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-height: 100%;
    overflow-y: auto;
}

.login-panel::-webkit-scrollbar {
    width: 6px;
}

.login-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.login-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.login-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.welcome-section {
    text-align: center;
    margin-bottom: 40px;
}

.welcome-title {
    font-size: 28px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 8px;
}

.welcome-subtitle {
    color: #546e7a;
    font-size: 16px;
    font-weight: 400;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    color: #2c3e50;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.3);
    color: #2c3e50;
    font-size: 15px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    font-weight: 500;
}

.form-group input::placeholder {
    color: rgba(44, 62, 80, 0.6);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #509887;
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 4px rgba(80, 152, 135, 0.15);
}

.checkbox-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    font-size: 14px;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    width: auto;
    transform: scale(1.1);
}

.checkbox-group label {
    margin: 0;
    color: #2c3e50;
    font-weight: 500;
}

.forgot-password {
    color: #509887;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #356666;
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #509887, #356666);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(80, 152, 135, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(80, 152, 135, 0.4);
}

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

.register-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #546e7a;
}

.register-link a {
    color: #509887;
    text-decoration: none;
    font-weight: 600;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .main-container {
        grid-template-columns: 1fr;
        max-width: 400px;
        min-height: auto;
    }
    
    .info-panel {
        display: none;
    }
    
    .login-panel {
        border-left: none;
        border-radius: 20px;
    }
    
    body {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .login-panel {
        padding: 30px 25px;
    }
    
    .welcome-title {
        font-size: 24px;
    }
}

/* Animaciones */
.main-container {
    animation: fadeInUp 0.8s ease-out;
}

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

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}