﻿:root {
    --brand: #2563eb;
    --brand-2: #0ea5e9;
    --text: #0f172a;
    --muted: #64748b;
    --bg: #ffffff;
}

/* Base */
html, body {
    height: 100%;
    background: var(--bg);
}

/* Shell general */
.auth-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    background: var(--bg);
}

/* --- PANEL IZQUIERDO --- */
.auth-panel {
    flex: 0 0 560px; /* ancho cómodo de la columna izquierda */
    max-width: 640px;
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.auth-brand img {
    height: 98px; /* tamaño similar al legacy */
    width: auto;
    display: block;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin: 6px 0 8px;
}

.auth-sub {
    color: var(--muted);
    font-size: 14px;
}

/* Form */
.auth-card {
    margin-top: 8px;
}

.form-label {
    font-weight: 600;
    color: var(--text);
}

.btn-primary {
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    border: 0;
}

    .btn-primary:hover {
        filter: brightness(0.95);
    }

.small-links a {
    color: var(--muted);
    text-decoration: none;
    margin-right: 12px;
}

    .small-links a:hover {
        color: var(--brand);
        text-decoration: underline;
    }

/* --- HERO DERECHO (IMAGEN) --- */
.auth-hero {
    position: relative;
    flex: 1 1 auto;
    min-height: 100vh; /* <- ocupa todo el alto de la ventana */
    overflow: hidden;
}

    /* La imagen llena el hero */
    .auth-hero > img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover; /* recorta sin deformar */
        object-position: center; /* ajusta si quieres enfocar otra zona */
        pointer-events: none; /* decorativo, no captura clics */
        z-index: 1;
    }

    /* Corte diagonal blanco por encima de la imagen */
    .auth-hero::before {
        content: "";
        position: absolute;
        left: -10vw; /* mueve el inicio del “corte” */
        top: 0;
        bottom: 0;
        width: 28vw; /* ancho del “triángulo” blanco */
        background: #fff;
        clip-path: polygon(0 0, 100% 0, 72% 100%, 0% 100%);
        z-index: 3;
    }

/* Lista de roles */
.role-list .list-group-item {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.role-list input[type="radio"] {
    margin-top: 0;
}

/* --- RESPONSIVE --- */
@media (max-width: 1200px) {
    /* recorta un poco menos el hero en pantallas medias */
    .auth-hero::before {
        left: -8vw;
        width: 24vw;
        clip-path: polygon(0 0, 100% 0, 70% 100%, 0% 100%);
    }
}

@media (max-width: 992px) {
    .auth-panel {
        padding: 32px 24px;
        flex-basis: auto;
    }

    .auth-brand img {
        height: 90px;
    }

    .auth-hero {
        display: none;
    }
    /* oculta hero en móviles */
}


/* Botón AD */
.btn-ad {
    background: linear-gradient(90deg, #22c1c3, #0ea5e9);
    border: 0;
    color: #fff;
}

    .btn-ad:hover {
        filter: brightness(0.95);
    }

/* Bloque “Aquí / Sign up” */
.support-line {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
    line-height: 1.5rem;
}

    .support-line .accent {
        color: var(--brand);
        text-decoration: none;
    }

        .support-line .accent:hover {
            text-decoration: underline;
        }

/* Footer */
.site-footer {
    text-align: center;
    padding: 28px 16px 40px;
    color: var(--muted);
    background: var(--bg);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

    .footer-links a {
        color: var(--muted);
        text-decoration: none;
    }

        .footer-links a:hover {
            color: var(--brand);
            text-decoration: underline;
        }

.copy {
    font-size: 14px;
}

/* Links auxiliares (Recuperar / Cambiar / Sign up) */
.support-links{
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
  font-size: 14px;

  /* en desktop: en una fila; en móviles: envuelve */
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.support-links li{ white-space: nowrap; }
.support-links a{
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  margin-left: .25rem;
}
.support-links a:hover{ text-decoration: underline; }

/* (opcional) forzar mismo alto en ambos botones si lo quieres muy parejo */
.btn-primary{
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border: 0;
  padding-top: .65rem;
  padding-bottom: .65rem;
}
.btn-primary:hover{ filter: brightness(0.95); }

/* --- Botoncitos auxiliares --- */
.support-actions {
    display: flex;
    gap: 10px 12px;
    flex-wrap: wrap;
    justify-content: center; /* ⬅️ centra horizontalmente */
    align-items: center; /* alinea verticalmente si hay dos líneas */
    text-align: center; /* por si se rompen en varias líneas */
}

/* (resto igual) */
.btn-aux {
    --aux-bg: #f1f5f9;
    --aux-bd: #e2e8f0;
    --aux-hbg: #eaf2ff;
    --aux-hbd: #bfdbfe;
    background: var(--aux-bg);
    border: 1px solid var(--aux-bd);
    color: var(--brand);
    font-weight: 600;
    border-radius: .5rem;
    padding: .375rem .65rem;
    line-height: 1.1;
    text-decoration: none;
}

    .btn-aux:hover {
        background: var(--aux-hbg);
        border-color: var(--aux-hbd);
        color: var(--brand);
        text-decoration: none;
    }

    .btn-aux:active {
        filter: brightness(.98);
    }

    .btn-aux.btn-sm {
        font-size: .85rem;
        padding: .325rem .6rem;
    }

    .btn-aux:hover {
        background: var(--aux-hbg);
        border-color: var(--aux-hbd);
        color: var(--brand);
        text-decoration: none;
    }

    .btn-aux:active {
        filter: brightness(.98);
    }

    .btn-aux.btn-sm {
        font-size: .85rem; /* pequeño */
        padding: .325rem .6rem;
    }

/* Botones de acciones (continuar/volver) con el mismo ancho que la lista */
.role-actions {
    display: grid;
    grid-template-columns: 1fr; /* móvil: uno bajo el otro */
    gap: 12px;
}

@media (min-width: 576px) { /* sm+ : dos columnas de igual ancho */
    .role-actions {
        grid-template-columns: 1fr 1fr;
    }
}

.role-actions .btn {
    width: 100%; /* que llenen la columna */
}

/* Altura/padding similar a los items de la lista */
.btn-slab {
    padding: .75rem 1rem; /* ajusta si los quieres aún más altos */
    font-weight: 600;
}

/* Mensajes debajo de los campos */
.field-msg {
    color: #1c50b9; /* rojo amable */
    font-size: .875rem;
    margin-top: .25rem;
    display: block;
}

/* Alerta suave para errores generales */
.alert-soft-danger {
    background: #1c65b9; /* rosa muy claro */
    border: 1px solid #fecdd3; /* borde suave */
    color: #ffffff; /* texto rojo oscuro */
    border-radius: .5rem;
    padding: .75rem 1rem;
}

    .alert-soft-danger ul {
        margin: .25rem 0 0 1rem;
    }

/* Opcional: estilo para el estado de error del input */
input.input-validation-error,
select.input-validation-error,
textarea.input-validation-error {
    border-color: #fca5a5; /* rojo clarito */
    box-shadow: 0 0 0 .15rem rgba(252, 165, 165, .25);
}



