:root {
    /* Usando el morado de tu logo como base principal */
    --primary-gradient: linear-gradient(135deg, #800481 0%, #2dd4bf 100%);
    --accent-purple: #800481;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: white;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    display: flex;
    width: 100%;
    height: 100vh;
    background: white;
    overflow: hidden;
}

/* Sección Izquierda: Login */
.login-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    max-width: 500px;
    margin: 0 auto;
}

.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-container img {
    max-width: 180px;
}

h2 {
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

p.subtitle {
    color: #64748b;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-main);
}

input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    outline: none;
    transition: border 0.3s;
}

input:focus {
    border-color: #2dd4bf;
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #94a3b8;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: #1e293b;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
    margin-top: 1rem;
}

.btn-login:hover {
    opacity: 0.9;
}

/* Ajuste general del contenedor para que no se vea apretado */
.register-section {
    flex: 1.2;
    /* Le damos un poco más de peso visual a la derecha */
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 40px;
    overflow-y: auto;
    /* Por si el contenido crece en pantallas pequeñas */
}

.register-content {
    width: 100%;
    max-width: 550px;
}

.main-desc {
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Grid de accesos */
.access-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.access-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
    text-align: left;
}

.access-card:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.15);
}

.card-icon {
    background: white;
    color: var(--accent-purple);
    padding: 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-text h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: white;
}

.card-text p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    opacity: 0.85;
}

/* Botones pequeños */
.btn-outline-sm {
    display: inline-block;
    padding: 8px 20px;
    border: 1.5px solid white;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline-sm:hover {
    background: white;
    color: var(--accent-purple);
}

/* Card especial para pacientes */
.patient-card {
    background: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.4);
}

.link-simple {
    color: white;
    text-decoration: underline;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Ajustes de Responsividad */
/* Ajustes de Responsividad */
@media (max-width: 768px) {
    body {
        height: auto;
        /* Permitimos que el cuerpo crezca */
        display: block;
        /* Quitamos el flex del body para evitar comportamientos raros */
    }

    .container {
        flex-direction: column;
        height: auto;
        /* IMPORTANTE: Quitamos el 100vh en móvil */
        overflow: visible;
        /* Permitimos que se vea todo el contenido */
    }

    .login-section {
        max-width: 100%;
        padding: 60px 25px;
        order: 1;
        /* El login aparece arriba */
    }

    .register-section {
        flex: none;
        /* Quitamos el flex para que tome el alto de sus hijos */
        padding: 60px 25px;
        order: 2;
        /* El registro aparece abajo */
        overflow-y: visible;
        /* Quitamos el scroll interno */
    }

    .register-content {
        max-width: 100%;
    }

    .access-card:hover {
        transform: none;
    }
}