﻿body {
    /* FONDO: Gradiente basado exactamente en tus colores */
    /*background: linear-gradient(135deg, #f5e475 0%, #e1c002 100%);*/
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    /*padding: 20px 0 20px 0;*/
    padding: 0 0 0 0;
}

/* Contenedor principal que envuelve el login */
.login-wrapper {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contenedor del encabezado por fuera de la tarjeta */
.header-outside {
    text-align: center;
    margin-bottom: 24px;
}

.logo-container {
    max-width: 350px;
    height: auto;
    margin: 0 auto 0 auto;
}

.logo-img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.system-title {
    font-size: 1.25rem;
    color: #1e293b;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}
/* Tarjeta central enfocada solo en el formulario */
.login-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(140, 110, 0, 0.25);
    background: #ffffff;
}

.form-control, .form-select {
    border-radius: 10px;
    padding-left: 40px;
    height: 48px;
    background-color: #f8f9fa;
    border: 1px solid #cbd5e1;
}

    .form-control:focus, form-select:focus  {
        box-shadow: 0 0 0 0.25rem rgba(225, 192, 2, 0.25);
        border-color: #e1c002;
        background-color: #fff;
    }

.input-group-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    color: #64748b;
}

.captcha-container {
    display: flex;
    justify-content: center;
}

.btn-login {
    background: linear-gradient(135deg, #f5e475, #e1c002);
    border: none;
    border-radius: 10px;
    height: 48px;
    font-weight: 600;
    color: #1e293b !important;
    transition: all 0.3s ease;
}

    .btn-login:hover {
        box-shadow: 0 4px 12px rgba(225, 192, 2, 0.4);
        transform: translateY(-1px);
        background: linear-gradient(135deg, #e1c002, #c9ab02);
    }

.link-accent {
    color: #8c7300;
    transition: color 0.2s ease;
}

    .link-accent:hover {
        color: #594900;
    }
/* Estilos del Footer */
.footer-institutional {
    flex-shrink: 0;
    text-align: center;
    padding: 20px 0 10px 0;
    font-size: 0.9rem;
    color: #334155;
    font-weight: 600;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
}

/* Checkbox seleccionado: fondo amarillo, borde amarillo y check blanco */
input[type="checkbox"] {
    accent-color: #ffc107; /* Color warning de Bootstrap */
    border-color: #ffc107;
    /*background-image: url("data:image/svg+xml,%3csvg xmlns='http://w3.org' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");*/
}

/* Radio button seleccionado: círculo central amarillo y borde amarillo */
input[type="radio"] {
    accent-color: #ffc107; /* Color warning de Bootstrap */
    border-color: #ffc107; /* Borde amarillo */
    /*background-image: url("data:image/svg+xml,%3csvg xmlns='http://w3.org' viewBox='0 0 20 20'%3e%3ccircle cx='10' cy='10' r='4' fill='%23ffc107'/%3e%3c/svg%3e");*/
}

.swal-show-class {
    animation: swal2-show 3s ease !important;
}

.swal-hide-class {
    animation: swal2-hide 3s ease !important;
}

.popover-header {
    background-color: #ffc107;
}

input[type="text"][disabled],
select.aspNetDisabled {
    background-color: #EEE;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    width: 100%;
    min-width: 100%;
    height: 30px;
    padding-left: 10px !important;
}

/* Adds space between the radio items */
/*.custom-rb-list label {
    margin-left: 3px;*/  /*Replaces the space before the text */
    /*margin-right: 15px;*/ /*Replaces the space after the text*/
/*}*/

/* Container styling */
.custom-rb-list {
    display: grid;
    grid-template-columns: auto 1fr; /* Column 1: Radio button, Column 2: Text */
    gap: 0.10rem 0.5rem; /* ¡Editado! Reducido de 0.75rem a 0.25rem para juntar las filas */
    align-items: start; /* Aligns the button with the first line of text */
}

    /* Force the inputs and labels to alternate columns automatically */
    .custom-rb-list input[type="radio"] {
        grid-column: 1;
        margin-top: 0.25rem; /* Vertically centers the dot with line 1 */
        cursor: pointer;
    }

    .custom-rb-list label {
        grid-column: 2;
        margin-bottom: 0;
        line-height: 1.4;
        cursor: pointer;
        margin-left: 3px; /*Replaces the space before the text */
        margin-right: 15px; /*Replaces the space after the text*/
    }



/* 1. Quitamos los estilos de Bootstrap al span contenedor */
span.form-check-input {
    /*border: none !important;
    background: none !important;*/
    /*appearance: none !important;*/
    width: auto !important;
    height: auto !important;
    display: inline-flex !important;
    align-items: center;
}

    /* 2. Aplicamos el tamaño de Bootstrap y el tamaño grande al INPUT real */
    span.form-check-input input[type="checkbox"] {
        /* Clases base de Bootstrap 5 para el checkbox */
        /*appearance: none;
        background-color: #fff;
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;*/
        border: 1px solid rgba(0, 0, 0, .25);
        border-radius: .25em;
        /* TAMAÑO PERSONALIZADO (Modifica estos dos valores a tu gusto) */
        width: 1.05rem !important;
        height: 1.05rem !important;
        margin: 0;
        cursor: pointer;
        /*transition: background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;*/
    }

        /* 3. Recreamos el diseño de "Checkeado" nativo de Bootstrap 5 para el nuevo input */
        /*span.form-check-input input[type="checkbox"]:checked {
            background-color: #0d6efd;
            border-color: #0d6efd;
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://w3.org' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
        }*/

/* 4. Alineación del texto largo */
.form-check-label {
    padding-left: 0.5rem;
    cursor: pointer;
    vertical-align: middle;
}