html {
    box-sizing: border-box;
    font-size: 62.5%; /* 1REM = 10px */
}
*, *:before, *:after {
    box-sizing:  inherit;
}

body {
    font-family:  "Outfit", sans-serif;
    font-size:  1.6rem;
    line-height: 2;
    margin: 0;
    min-height: 100vh;
}
img {
    max-width: 100%;
    display: block;
}

/* Panel dividido (opción 3 del mock aprobado): la identidad de marca
   vive en un panel fijo oscuro, el formulario en un panel claro --
   mismos tokens que el resto de la app ya migrada (Consulta/Pacientes/
   Personal), en vez del gradiente teal/dorado/teal-claro anterior (el
   resplandor teal, rgba(14,124,140), era la misma familia de color que
   --bg-bondiBlue en el resto de la app). */
.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
}

.panel-marca {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 3rem;
    background:
        radial-gradient(circle at 30% 70%, rgba(207, 155, 70, .22) 0%, transparent 55%),
        radial-gradient(circle at 75% 20%, rgba(207, 155, 70, .14) 0%, transparent 50%),
        #1c2b2e;
}

.panel-marca svg {
    width: 22rem;
    height: auto;
    position: relative;
}

.panel-formulario {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 3rem 1.5rem;
}

@media (max-width: 767px) {
    .container {
        flex-direction: column;
    }

    .panel-marca {
        flex: 0 0 auto;
        padding: 2.4rem;
    }

    .panel-marca svg {
        width: 12rem;
    }

    .panel-formulario {
        flex: 1;
    }
}

.contenedor-form {
    width: 100%;
    max-width: 38rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 2rem;
    padding: 3.6rem 0;
}

@media ( max-width: 479px ) {
    .contenedor-form {
        padding: 2.4rem 0;
    }
}

.title, .logo{
    display: flex;
    justify-content: center;
    align-items: center;
}

.title h1 {
    font-size: 2rem;
    color: #1c2b2e;
    margin: 0;
}

.form-login {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    row-gap: 1.2rem;
}

.campo-form {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

/* Reposo neutro (--color-ink-300) + foco dorado -- mismo campo de
   búsqueda ya usado en Consulta/Pacientes/Personal, no el "vidrio
   esmerilado" anterior (pensado para flotar sobre el fondo oscuro que
   ya no existe en este panel). */
.grupo_input {
    display: flex;
    align-items: center;
    column-gap: .9rem;
    width: 100%;
    padding: 1.1rem 1.4rem;
    border-radius: 1.2rem;
    background: #ffffff;
    border: 1px solid #d7e1e2;
    transition: border-color .2s ease-in-out, box-shadow .2s ease-in-out;
}

.grupo_input:focus-within {
    border-color: #cf9b46;
    box-shadow: 0 0 0 3px rgba(207, 155, 70, .22);
}

.icons {
    display: flex;
    align-items: center;
    color: #55676a;
    font-size: 1.4rem;
}

.validators {
    display: flex;
    align-items: center;
}

input {
    outline: none;
}

input[type="text"], input[type="password"] {
    width: 100%;
    border: none;
    background: transparent;
    color: #1c2b2e;
    /* 1.6rem = 16px (root en 62.5%, ver línea 3) -- por debajo de eso,
       iOS Safari dispara zoom automático al enfocar el input. */
    font-size: 1.6rem;
    padding: .2rem 0;
}

input[type="text"]::placeholder, input[type="password"]::placeholder {
    color: #55676a;
}


.grupo_submit {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: .6rem 0 0;
}


.btn-sesion {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 1.1rem;
    column-gap: 1rem;
    border-radius: 1.2rem;
    border: none;
    background: #cf9b46;
    color: #1c2b2e;
    font-size: 1.4rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(207, 155, 70, .35);
    cursor: pointer;
    transition: background-color .2s ease-in-out, transform .2s ease-in-out;
}

.btn-sesion:hover {
    background-color: #a97a2f;
    transform: translateY(-.15rem);
}


.olvide-password {
    display: flex;
    justify-content: center;
    margin: .8rem 0 0;
    font-size: 1.2rem;
}

.olvide-password a {
    color: #cf9b46;
    text-decoration: none;
    font-weight: 600;
}

.olvide-password a:hover {
    text-decoration: underline;
}


.politicas-privacidad {
    display: flex;
    flex-direction: column;
    place-items: center;
    margin: 1rem 0;
    font-size: 1.2rem;
}

.politicas-privacidad a {
    color: #55676a;
    text-decoration: none;
}

.politicas-privacidad a:hover {
    color: #1c2b2e;
}

@media ( min-width: 480px ) {
    .politicas-privacidad {
        flex-direction: row;
        column-gap: 2rem;
    }
}

.flash {
    width: 100%;
    background-color: var(--blanco);
    position: relative;
    /* float: left; */
    border: 1px solid var(--p);
    border-radius:  10px;
    /* margin: 50px 10px; */
    margin-top: 5rem;
    padding: 2rem;
    width: 100%;
    text-align: center;
    color: var(--p);
}

.validations-error, .flashMessages  {
    color: #b8342d;
    font-size: 1.2rem;
}

/* ===================== Elegir sucursal (auth/elegir-sucursal.html) =====================
   Pantalla que aparece después de iniciar sesión cuando la cuenta trabaja
   en más de una sede (docs/multisucursal-fase3.md, paso 4). Mismo panel
   dividido que el login; cada sede es un botón con el mismo reposo neutro
   y foco dorado que .grupo_input. La sede usada la vez anterior queda
   resaltada con ese mismo foco y la etiqueta "Última usada". */
.selector-sede {
    width: 100%;
    display: flex;
    flex-direction: column;
    row-gap: 1.6rem;
}

.selector-sede .saludo {
    text-align: center;
    line-height: 1.4;
}

.selector-sede .saludo h1 {
    font-size: 2.2rem;
    color: #1c2b2e;
    margin: 0 0 .4rem;
    text-wrap: balance;
}

.selector-sede .saludo p {
    margin: 0;
    font-size: 1.4rem;
    color: #55676a;
}

.lista-sedes {
    list-style: none;
    margin: .4rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    row-gap: 1rem;
}

.lista-sedes form {
    margin: 0;
}

.opcion-sede {
    width: 100%;
    display: flex;
    align-items: center;
    column-gap: 1.2rem;
    padding: 1.3rem 1.4rem;
    background: #ffffff;
    border: 1px solid #d7e1e2;
    border-radius: 1.2rem;
    cursor: pointer;
    text-align: left;
    font: inherit;
    line-height: 1.35;
    transition: border-color .2s ease-in-out, box-shadow .2s ease-in-out;
}

.opcion-sede:hover,
.opcion-sede:focus-visible,
.opcion-sede.ultima {
    border-color: #cf9b46;
    box-shadow: 0 0 0 3px rgba(207, 155, 70, .22);
    outline: none;
}

.opcion-sede .icono-sede {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6ecd9;
    color: #8a6a2e;
    font-size: 1.6rem;
}

.opcion-sede .datos-sede {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.opcion-sede .nombre-sede {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1c2b2e;
    display: flex;
    align-items: center;
    gap: .8rem;
}

.opcion-sede .domicilio-sede {
    font-size: 1.25rem;
    color: #55676a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.opcion-sede .fa-chevron-right {
    color: #55676a;
    font-size: 1.3rem;
}

.etiqueta-ultima {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    background: rgba(14, 124, 140, .14);
    color: #0e7c8c;
    padding: .1rem .7rem;
    border-radius: 1rem;
    white-space: nowrap;
}

.salir-selector {
    text-align: center;
    font-size: 1.3rem;
}

.salir-selector a {
    color: #55676a;
}
