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


:root {
    /* Tokens SIGU específicos para auth */
    --sigu-primary: #5E548E;
    --sigu-primary-mid: #7c5ba3;
    --sigu-primary-dark: #4A4270;
    --sigu-muted: #6b7280;
    --sigu-bg: #f6f7f8;
    --sigu-border: #d0d7de;
    --sigu-shadow: 0 12px 30px rgba(74, 78, 105, 0.08);
}


.login-body {
    background-color: #F4F4F6;
    min-height: 100vh;
    overflow: auto;
    font-family: system-ui, sans-serif;
}


.login-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 90px;
    /* altura fija */
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
}

/* IZQUIERDA */
.header-left .logo-icon {
    width: 140px;
    height: auto;
    object-fit: contain;
    transition: transform 0.25s ease;
}

/* Clase específica para el header en el registro (si aplica) */
.regis-header .logo-icon {
    width: 140px;
}

/* CENTRO */
.header-center {
    text-align: center;
    flex: 1;
}

/* Replicar estilos del brand del index para uso en registro (clases específicas) */
.navbar-index-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-index-logo-img {
    width: 65px;
    height: 65px;
    object-fit: contain;
}

.navbar-index-logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.navbar-index-logo-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--sigu-primary);
    margin: 0;
}

.navbar-index-logo-subtitle {
    font-size: 0.7rem;
    color: var(--sigu-muted);
    margin: 0;
    text-transform: uppercase;
}

.logo-title {
    font-size: 40px;
    font-weight: bold;
    margin: 0;
    color: #1f3f6d;
    /* Azul principal del logo */
    letter-spacing: 2px;
}

.logo-subtitle {
    margin: 5px 0 0 0;
    font-size: 16px;
    color: #5f6f7f;
}

/* DERECHA */
.header-right .btn-home {
    text-decoration: none;
    padding: 8px 15px;
    background-color: #5E548E;
    color: white;
    border-radius: 6px;
    font-size: 14px;
    transition: 0.3s ease;
}

.header-right .btn-home:hover {
    background-color: #163257;
}

/* Utilities */
.btn-home {
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 18px;
    border-radius: 8px;
    background-color: #5E548E;
    color: #ffffff;
    transition: all 0.3s ease;
}

.btn-home:hover {
    background-color: #111827;
    transform: translateY(-2px);
}

.btn-primary {
    background-color: #5E548E !important;
    border-color: #5E548E !important;
}

.btn-primary:hover {
    background-color: #4A4E69 !important;
    border-color: #4A4E69 !important;
}

.login-card {
    width: 100%;
    backdrop-filter: blur(6px);
    max-width: 420px;
    background: #FFFFFF;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #DADDE1;
    box-shadow: 0 15px 35px rgba(74, 78, 105, 0.08);
}

.login-links {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.login-links a {
    text-decoration: none;
    color: #5E548E;
    font-weight: 500;
}

.login-links a:hover {
    text-decoration: underline;
    color: #4A4E69;
}

/* ====== WRAPPER GENERAL ====== */
.regis-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background-color: #f6f7f8;
    font-family: 'Public Sans', sans-serif;
}

/* ====== CARD ====== */
.regis-card {
    width: 100%;
    max-width: 720px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfd 100%);
    padding: 36px;
    border-radius: 14px;
    box-shadow: var(--sigu-shadow);
    border: 1px solid var(--sigu-border);
    position: relative;
    overflow: hidden;
}

.regis-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 6px;
    background: linear-gradient(90deg, var(--sigu-primary), var(--sigu-primary-mid));
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

/* ====== HEADER ====== */
.regis-header {
    text-align: center;
    margin-bottom: 30px;
}

.regis-icon {
    background: rgba(19, 127, 236, 0.1);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    color: #137fec;
}

.regis-header h1 {
    margin: 0;
    font-size: 28px;
    color: var(--sigu-primary-dark);
    font-weight: 800;
}

.regis-header p {
    color: var(--sigu-muted);
    margin-top: 6px;
}

/* ====== FORMULARIO ====== */
.regis-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.regis-row {
    display: flex;
    gap: 20px;
}

.regis-row .regis-group {
    flex: 1;
}

@media (max-width: 768px) {
    .regis-row {
        flex-direction: column;
    }

    .regis-card {
        padding: 28px;
        max-width: 95%;
    }

    .header-left .logo-icon {
        width: 120px;
    }
}

/* ====== INPUTS ====== */
.regis-input {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--sigu-border);
    font-size: 14px;
    transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}

.regis-input:focus {
    border-color: var(--sigu-primary);
    outline: none;
    box-shadow: 0 6px 20px rgba(94, 84, 142, 0.08);
    transform: translateY(-1px);
}

/* ====== BOTÓN ====== */
.regis-btn {
    width: 100%;
    background: linear-gradient(90deg, var(--sigu-primary), var(--sigu-primary-mid));
    color: white;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 8px 20px rgba(94, 84, 142, 0.12);
}

.regis-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(94, 84, 142, 0.18);
}

/* ====== FOOTER ====== */
.regis-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
}

.regis-footer a {
    color: #137fec;
    font-weight: bold;
    text-decoration: none;
}

/* ------------------------------
     RECORGANIZADO: SECCIONES POR VISTA
     - Login
     - Register
     - Recuperar / Verificar / Nueva Contraseña
 ------------------------------ */

/* ========== LOGIN ========== */
.login-body {
    background-color: #F4F4F6;
    min-height: 100vh;
    font-family: 'Public Sans', sans-serif;
    overflow: auto;
}

.login-wrapper {
    min-height: calc(100vh - 90px);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #F4F4F6;
    padding: 20px;
}

.login-box {
    width: 70%;
    min-height: 450px;
    height: 80vh;
    max-height: 700px;
    background: #FFFFFF;
    display: flex;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(74, 78, 105, 0.15);
    transition: all 0.3s ease;
}

.login-left {
    flex: 1;
    background: linear-gradient(rgba(94, 84, 142, 0.65), rgba(74, 78, 105, 0.65))
}

.login-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #FFFFFF;
    padding: 20px;
}

.form-control {
    border: 1px solid #DADDE1;
    border-radius: 8px;
    padding: 10px 14px;
}

.form-control:focus {
    border-color: #5E548E;
    box-shadow: 0 0 0 0.2rem rgba(94, 84, 142, 0.15);
}

/* ========== REGISTER (regis-) ========== */
.regis-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background-color: #f6f7f8;
    font-family: 'Public Sans', sans-serif;
}

.regis-card {
    width: 100%;
    max-width: 800px;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.regis-header {
    text-align: center;
    margin-bottom: 30px;
}

.regis-header h1 {
    margin: 0;
    font-size: 26px;
}

.regis-header p {
    color: #6c757d;
}

.regis-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.regis-row {
    display: flex;
    gap: 20px;
}

.regis-row .regis-group {
    flex: 1;
}

.regis-input {
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #d0d7de;
    font-size: 14px;
    transition: 0.2s;
}

.regis-input:focus {
    border-color: #137fec;
    outline: none;
    box-shadow: 0 0 0 3px rgba(19, 127, 236, 0.15);
}

.regis-btn {
    width: 100%;
    background: #137fec;
    color: #fff;
    padding: 14px;
    border-radius: 8px;
    border: none;
    font-weight: bold;
    cursor: pointer;
}

.regis-btn:hover {
    background: #0f6fd0;
}

.regis-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
}

/* ========== RECUPERAR / COMPARTIDO (recov-) ========== */
.recov-body {
    min-height: 100vh;
    font-family: 'Public Sans', sans-serif;
    background: linear-gradient(rgba(31, 63, 109, 0.75), rgba(31, 63, 109, 0.75)), url('../imagenes/login-gb.png') center/cover no-repeat;
    display: flex;
    flex-direction: column;
}

.recov-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.recov-card {
    width: 100%;
    max-width: 460px;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: 0.3s ease;
}

.recov-card:hover {
    transform: translateY(-5px);
}

/* franja superior: solo el acento (pequeña banda) */
.recov-card-header {
    height: 6px;
    background: linear-gradient(90deg, #1f3f6d, #5E548E);
}

.recov-header-accent {
    height: 100%;
    width: 100%;
}

/* cuerpo del card */
.recov-card-body {
    padding: 40px;
}

.recov-title {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
}

.recov-description {
    font-size: 14px;
    color: #6b7280;
    text-align: center;
    margin-bottom: 18px;
}

.recov-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.recov-group label {
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
}

.recov-group input {
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 15px;
    transition: 0.3s;
}

.recov-group input:focus {
    border-color: #5E548E;
    box-shadow: 0 0 0 4px rgba(94, 84, 142, 0.15);
    outline: none;
}

.recov-btn {
    width: 100%;
    background: linear-gradient(135deg, #5E548E, #4A4E69);
    color: #fff;
    padding: 14px;
    border-radius: 10px;
    font-weight: 600;
    transition: 0.3s;
    border: none;
}

.recov-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(94, 84, 142, 0.4);
}

.recov-success {
    background: #ecfdf5;
    color: #047857;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}

.recov-error {
    background: #fef2f2;
    color: #b91c1c;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}

/* algunas vistas usan 'recov-error-box' (nueva_password) -> mapear al mismo estilo */
.recov-error-box {
    background: #fef2f2;
    color: #b91c1c;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}

.recov-back {
    margin-top: 20px;
    text-align: center;
}

.recov-back a {
    color: #137fec;
    font-weight: 600;
    text-decoration: none;
}

.recov-back a:hover {
    text-decoration: underline;
}

.recov-footer {
    text-align: center;
    padding: 20px;
    font-size: 12px;
    color: #9ca3af;
}

/* ========== VERIFICAR CÓDIGO (parcial) ========== */
.verify-input {
    width: 100%;
    padding: 15px;
    font-size: 24px;
    text-align: center;
    letter-spacing: 8px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
}

.verify-input:focus {
    outline: none;
    border-color: #137fec;
    box-shadow: 0 0 0 3px rgba(19, 127, 236, 0.15);
}

.verify-btn {
    width: 100%;
    padding: 14px;
    background: #137fec;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.verify-btn:hover {
    background: #0f6fd0;
}

.verify-error {
    background: #fee2e2;
    color: #b91c1c;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.verify-resend {
    background: none;
    border: none;
    color: #137fec;
    cursor: pointer;
    font-weight: 600;
}

/* ========== NUEVA CONTRASEÑA (newpass-) ========== */
.newpass-wrapper {
    min-height: calc(100vh - 160px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.newpass-card {
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    border-radius: 16px;
    padding: 35px 30px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
}

/* personalización del acento dentro del card para newpass */
.newpass-card .recov-header-accent {
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    margin: 0 auto 15px auto;
    border-radius: 4px;
}

/* Header textual para newpass se utiliza dentro del cuerpo (recov-card-body) */
.newpass-card .recov-title {
    font-size: 26px;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 8px;
}

.newpass-card .recov-description {
    font-size: 14px;
    color: #6c757d;
    margin: 0 0 16px 0;
}

/* ========== UTILIDADES / VARIOS ========== */
.top-navigation {
    display: flex;
    justify-content: flex-end;
    padding: 15px 40px 0 40px;
}



/* ===========================
   RECUPERAR CONTRASEÑA
   =========================== */

.recov-body {
    min-height: 100vh;
    font-family: 'Public Sans', sans-serif;
    background:
        linear-gradient(rgba(31, 63, 109, 0.75), rgba(31, 63, 109, 0.75)),
        url('../imagenes/login-gb.png') center/cover no-repeat;
    display: flex;
    flex-direction: column;
}

.recov-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}


.recov-page {
    font-family: 'Public Sans', sans-serif;
}

/* HEADER */
.recov-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.recov-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.recov-logo span {
    background: #137fec;
    color: white;
    padding: 6px;
    border-radius: 8px;
}

.recov-subtitle {
    font-size: 14px;
    color: #6b7280;
}

/* CARD */
.recov-card {
    width: 100%;
    max-width: 460px;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: 0.3s ease;
}

.recov-card:hover {
    transform: translateY(-5px);
}


.recov-card-header {
    height: 6px;
    background: linear-gradient(90deg, #1f3f6d, #5E548E);
    display: flex;
    align-items: center;
    justify-content: center;
}

.recov-header-accent {
    height: 100%;
    width: 100%;
}

.recov-card-body {
    padding: 45px 40px;
}

.recov-icon {
    font-size: 28px;
    color: white;
    font-weight: 600;
    letter-spacing: 1px;
}


.recov-icon {
    font-size: 40px;
    color: #137fec;
}

.recov-card-body {
    padding: 40px;
}

.recov-title {
    font-size: 22px;
    font-weight: 700;
}

.recov-description {
    font-size: 14px;
    color: #6b7280;
}

/* FORM */
.recov-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.recov-group label {
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
}

.recov-group input {
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 15px;
    transition: 0.3s ease;
}

.recov-group input:focus {
    border-color: #5E548E;
    box-shadow: 0 0 0 4px rgba(94, 84, 142, 0.15);
    outline: none;
}


/* BUTTON */
.recov-btn {
    width: 100%;
    background: linear-gradient(135deg, #5E548E, #4A4E69);
    color: white;
    padding: 14px;
    border-radius: 10px;
    font-weight: 600;
    transition: 0.3s ease;
}

.recov-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(94, 84, 142, 0.4);
}


/* SUCCESS */
.recov-success {
    background: #ecfdf5;
    color: #047857;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}

/* ERROR */
.recov-error {
    background: #fef2f2;
    color: #b91c1c;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}

/* BACK LINK */
.recov-back {
    margin-top: 20px;
    text-align: center;
}

.recov-back a {
    color: #137fec;
    font-weight: 600;
    text-decoration: none;
}

.recov-back a:hover {
    text-decoration: underline;
}

/* FOOTER */
.recov-footer {
    text-align: center;
    padding: 20px;
    font-size: 12px;
    color: #9ca3af;
}


/* ===============================
   VERIFY CODE VIEW
================================= */

.verify-page {
    min-height: 100vh;
    background-color: #f6f7f8;
    display: flex;
    flex-direction: column;
    font-family: 'Public Sans', sans-serif;
}

.verify-header {
    padding: 20px 40px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.verify-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 18px;
    color: #137fec;
}

.verify-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.verify-card {
    width: 100%;
    max-width: 450px;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.verify-title-box {
    text-align: center;
    margin-bottom: 30px;
}

.verify-title-box h1 {
    margin-bottom: 10px;
}

.verify-title-box p {
    color: #6b7280;
    font-size: 14px;
}

.verify-group {
    margin-bottom: 20px;
}

.verify-input {
    width: 100%;
    padding: 15px;
    font-size: 24px;
    text-align: center;
    letter-spacing: 8px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
}

.verify-input:focus {
    outline: none;
    border-color: #137fec;
    box-shadow: 0 0 0 3px rgba(19, 127, 236, 0.15);
}

.verify-btn {
    width: 100%;
    padding: 14px;
    background: #137fec;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.verify-btn:hover {
    background: #0f6fd0;
}

.verify-error {
    background: #fee2e2;
    color: #b91c1c;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.verify-footer {
    margin-top: 20px;
    text-align: center;
}

.verify-resend {
    background: none;
    border: none;
    color: #137fec;
    cursor: pointer;
    font-weight: 600;
}


/* ===============================
   NUEVA PASSWORD (npw- prefix)
=================================*/

.npw-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f6f7f8;
}

.npw-header {
    padding: 20px;
    text-align: center;
    font-weight: bold;
    background: white;
    border-bottom: 1px solid #ddd;
}

.npw-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.npw-card {
    width: 100%;
    max-width: 450px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.npw-card-header {
    text-align: center;
    margin-bottom: 25px;
}

.npw-card-header h1 {
    margin-bottom: 10px;
}

.npw-group {
    margin-bottom: 15px;
}

.npw-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.npw-group input {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.npw-btn {
    width: 100%;
    padding: 12px;
    background-color: #137fec;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

.npw-btn:hover {
    background-color: #0f6cd4;
}

.npw-error-box {
    background: #ffe5e5;
    color: #b30000;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.npw-back {
    margin-top: 15px;
    text-align: center;
}

.npw-back a {
    text-decoration: none;
    color: #137fec;
}

.npw-footer {
    text-align: center;
    padding: 15px;
    font-size: 12px;
    color: #777;
}

/* ===============================
   NUEVA PASSWORD - ESTILOS PROPIOS
================================= */

.newpass-wrapper {
    min-height: calc(100vh - 160px);
    /* Ajusta si tu header/footer cambian */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.newpass-card {
    width: 100%;
    max-width: 480px;
}

/* ===============================
   NUEVA PASSWORD - CARD VISUAL
================================= */

.newpass-card {
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    border-radius: 16px;
    padding: 35px 30px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
}

/* ===============================
   NUEVA PASSWORD - HEADER CARD
================================= */

.newpass-card .recov-card-header {
    text-align: center;
    margin-bottom: 25px;
}

.newpass-card .recov-card-header h1 {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c2c2c;
}

.newpass-card .recov-card-header p {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

/* Ajuste visual del acento si lo usas */
.newpass-card .recov-header-accent {
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    margin: 0 auto 15px auto;
    border-radius: 4px;
}


/* ============================= */
/* BOTÓN VOLVER AL INICIO */
/* ============================= */

.top-navigation {
    display: flex;
    justify-content: flex-end;
    padding: 15px 40px 0 40px;
}

.btn-home {
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 18px;
    border-radius: 8px;
    background-color: #5E548E;
    /* gris oscuro elegante */
    color: #ffffff;
    transition: all 0.3s ease;
}

.btn-home:hover {
    background-color: #111827;
    transform: translateY(-2px);
}

.btn-primary {
    background-color: #5E548E !important;
    border-color: #5E548E !important;
}

.btn-primary:hover {
    background-color: #4A4E69 !important;
    border-color: #4A4E69 !important;
}

.login-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #FFFFFF;
}


/* ===========================
   RESPONSIVE QUERIES
   =========================== */

@media (max-width: 1200px) {
    .login-box {
        width: 85%;
    }
}

@media (max-width: 992px) {
    .login-box {
        width: 95%;
        height: 70vh;
    }

    .login-header {
        padding: 0 20px;
    }

    .logo-title {
        font-size: 30px;
    }

    .logo-subtitle {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .login-header {
        height: auto;
        padding: 15px 20px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .header-left {
        order: 1;
    }

    .header-right {
        order: 2;
    }

    .header-center {
        order: 3;
        width: 100%;
        margin-top: 10px;
    }

    .login-wrapper {
        min-height: calc(100vh - 150px);
        padding: 10px;
    }

    .login-box {
        flex-direction: column;
        height: auto;
        min-height: unset;
        margin: 20px 0;
    }

    .login-left {
        display: none;
    }

    .login-right {
        width: 100%;
        padding: 30px 15px;
    }

    .login-card {
        width: 100%;
        max-width: 100%;
        padding: 0;
        border: none;
        box-shadow: none;
    }

    .logo-title {
        font-size: 24px;
    }

    .logo-subtitle {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .header-center {
        display: none;
    }

    /* Hide complicated subtitle on very small screens */
    .header-left .logo-icon {
        width: 100px;
    }

    .login-header {
        justify-content: space-between;
    }
}