@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #ffffff;
    color: #000;
}

/* FONDO PROFESIONAL FULLSCREEN */
.background {
    position: fixed;
    inset: 0;
    background-image: url('images/rdv_background.jpg');
    background-size: cover;
    /* ocupa toda la pantalla */
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    /* efecto más moderno */
    z-index: -2;
}

/* Overlay más ligero */
.background::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.65);
    /* menos opaco */
}

/* HEADER */
.header {
    padding: 22px 50px;
    border-bottom: 1px solid #e8e8e8;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 18px;
}

.logo {
    height: 50px;
}

.header h1 {
    font-size: 24px;
    font-weight: 700;
}



/* MAIN */
.main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

/* CARD */
.login-card {
    width: 100%;
    max-width: 460px;
    padding: 45px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
}

.login-card h2 {
    margin-bottom: 30px;
    font-weight: 700;
    font-size: 22px;
}

.main-card {
    width: 100%;
    max-width: 460px;
    padding: 45px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    text-align: center;
}

.main-card h2 {
    margin-bottom: 30px;
    font-weight: 700;
    font-size: 22px;
}

/* FORM */
form {
    display: flex;
    flex-direction: column;
}

.section-label {
    font-weight: 600;
    margin-bottom: 10px;
}

label {
    font-weight: 600;
    margin-top: 18px;
    margin-bottom: 6px;
}

input {
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #dcdcdc;
    font-size: 15px;
    transition: 0.2s ease;
}

input:focus {
    border-color: #ff7a00;
    outline: none;
}

/* ROLE SELECTOR REFINADO */

.role-selector {
    display: flex;
    flex-wrap: wrap;
    /* permite agruparse en responsive */
    justify-content: space-between;
    background: #f4f4f4;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 15px;
    gap: 4px;
}

.role-selector input {
    display: none;
}

.role-selector label {
    flex: 1 1 30%;
    text-align: center;
    padding: 8px 6px;
    /* más compacto */
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s ease;
    color: #555;
}

/* activo */
.role-selector input:checked+label {
    background: #000;
    color: #fff;
}

/* hover */
.role-selector label:hover {
    background: #e6e6e6;
}

/* RESPONSIVE ESPECÍFICO DEL SELECTOR */
@media (max-width: 500px) {
    .role-selector label {
        flex: 1 1 48%;
        /* se agrupan 2 por fila */
    }

    .role-selector label:last-child {
        flex: 1 1 100%;
        /* el último ocupa toda la fila */
    }
}

/* BOTÓN */
button {
    margin-top: 30px;
    padding: 16px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(90deg, #000000, #444444);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s ease;
}

button:hover {
    opacity: 0.9;
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 18px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid #e5e5e5;
}

.footer a {
    color: #000;
    font-weight: 600;
    text-decoration: none;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .header {
        padding: 18px 25px;
    }

    .header h1 {
        font-size: 20px;
    }

    .logo {
        height: 40px;
    }

    .login-card {
        padding: 30px;
    }

    .role-selector label {
        padding: 10px 6px;
        font-size: 13px;
    }
}