:root {
    --rz-primary: #000000 !important;
    --rz-primary-light: #000000 !important;
    --rz-primary-lighter: #EBEDE9 !important;
    --rz-primary-dark: #000000 !important;
    --rz-on-primary-lighter: #000000 !important;
    --rz-header-background-color: #ffffff !important;
    --rz-sidebar-background-color: #596069 !important;
    --rz-text-font-family: 'Inter', sans-serif;
    --rz-panel-menu-item-active-background-color: rgba(255, 255, 255, 0.2) !important;
    --rz-panel-menu-item-active-color: #ffffff !important;
    --rz-sidebar-toggle-hover-background-color: #ffffff !important;
    --rz-panel-menu-item-color: #596069 !important;
    --rz-panel-menu-item-hover-background-color: rgba(255, 255, 255, 0.2) !important;
    --rz-panel-menu-item-hover-color: #ffffff !important;
    --rz-pager-numeric-button-selected-background-color: #000000 !important;
    --rz-pager-numeric-button-selected-color: #ffffff !important;
    --rz-profile-menu-top-item-background-color: #ffffff !important;
    --rz-notification-info-color: #ffffff !important;
    --rz-notification-info-icon-color: #ffffff !important;
    --rz-notification-info-icon-color: #ffffff !important;
    --rz-notification-container-background-color: #000000 !important;
    --rz-editor-button-selected-background-color: #000000 !important;
    --rz-editor-button-selected-color: #ffffff !important;
    --rz-datepicker-calendar-selected-hover-background-color: #000000 !important;

    --rz-info: #000000 !important;
    /* Nuevas variables para las fuentes */
    --font-primary: 'Inter', sans-serif;
    --font-serif: 'Instrument Serif', serif;
}

.rz-grid-table thead th {
    background-color: #EBEDE9 !important;
}

.rz-button-text {
    text-transform: initial !important;
}

.rz-badge {
    text-transform: initial !important;
}

.rz-datalist-content .rz-g > div {
    border: none;
    padding: 1px;
    background-color: transparent;
}

.my-popup {
    display: none;
    position: absolute;
    overflow: hidden;
    height: 450px;
    width: 450px;
    border: var(--rz-panel-border);
    background-color: var(--rz-panel-background-color);
    box-shadow: var(--rz-panel-shadow);
    border-radius: var(--rz-border-radius);
    transform: translateX(-120px);
}

/* Ocultar el badge de reCAPTCHA por defecto en toda la aplicación */
.grecaptcha-badge {
    visibility: hidden !important;
}

/* Mostrar el badge solo en la página de registro */
.signup-page .grecaptcha-badge {
    visibility: visible !important;
}

html, body {
    font-family: var(--font-primary);
}

/* Clases utilitarias para usar las fuentes */
.font-inter {
    font-family: var(--font-primary);
}

.font-serif {
    font-family: var(--font-serif);
}

/* Aplicar Instrument Serif a títulos por defecto */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
}

/* Estilos comunes para pantallas de autenticación */
.auth-wrapper {
    background: #ffffff;
}

.auth-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('/img/login_img.svg') center/cover no-repeat;
    filter: saturate(1) contrast(1);
}

.auth-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 65%);
}

/* Estilos específicos para forgot */
.forgot-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('/img/forgot_img.svg') center/cover no-repeat;
    filter: saturate(1) contrast(1);
}

/* Estilos específicos para signup - EXACTAMENTE IGUALES AL LOGIN */
.signup-hero {
    background-color: #f0f0f0;
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    bottom: 16px;
    border-radius: 24px;
    overflow: hidden;
}

.signup-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('/img/register_img.svg') center/cover no-repeat;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    border-radius: 24px;
}

.auth-quote blockquote {
    font-family: 'Instrument Serif', serif;
    font-size: 46px;
    line-height: 1.1;
    font-weight: 400;
    margin: 0 0 22px 0;
}

.auth-quote .author {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    opacity: .95;
}

.auth-title {
    font-family: 'Instrument Serif', serif;
}

.auth-subtitle {
    font-family: 'Inter', sans-serif;
}

.auth-form-label {
    font-family: 'Inter', sans-serif;
    font-size: 10pt;
}

/* Enlaces en negro para formularios de auth - MÁS ESPECÍFICOS */
.auth-link a,
.auth-link .rz-link {
    color: #000000 !important;
    text-decoration: none !important;
}

.auth-link a:hover,
.auth-link .rz-link:hover {
    color: #333333 !important;
    text-decoration: underline !important;
}

.auth-button {
    background: #000 !important;
    border: 1px solid #000 !important;
    color: #fff !important;
    border-radius: 24px !important;
    font-family: 'Inter', sans-serif !important;
    transition: transform .15s ease, box-shadow .2s ease !important;
}

.auth-button:hover {
    background: #333333 !important;
    border-color: #333333 !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(0,0,0,.15) !important;
}

.auth-button:active {
    transform: none;
}

/* Botón secundario blanco con borde negro */
.auth-button-secondary {
    background: #ffffff !important;
    border: 1px solid #000000 !important;
    color: #000000 !important;
    border-radius: 24px !important;
    font-family: 'Inter', sans-serif !important;
    transition: transform .15s ease, box-shadow .2s ease !important;
}

.auth-button-secondary:hover {
    background: #f8f9fa !important;
    border-color: #333333 !important;
    color: #333333 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,.1) !important;
}

.auth-button-secondary:active {
    transform: none;
}

.auth-text {
    font-family: 'Inter', sans-serif;
}

.rz-login .rz-register {
    color: black;
}

@media only screen and (min-width : 375px) and (max-width : 667px) and (orientation : portrait) {
    .rz-datepicker-popup-container {
        left: 0 !important;
        right: 0 !important;
        margin: 0 auto !important;
    }
}

body {
    background-color: #f5f5f5;
}

h1:focus {
    outline: none;
}

/* Estilos generales de enlaces - MENOS ESPECÍFICOS que .auth-link */
a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjNI5VSAyNjcuMzg3IDkyLjI4MzcgMjY3LjM4NyA4OS43OTIxIDI2Ny4zODcgODcuMzAwNSAyNjYuMTE2IDg2LjA1NDcgMjYzLjU3NiA4Ni4wNTQ3WiIgZmlsbD0iI0ZGRTUwMCIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9nPjwvc3ZnPg==) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: absolute;
    background-color: white;
    display: block;
    width: 100%;
    height: 100%;
}

.loading-progress-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

    .loading-progress-center img {
        width: 300px;
        margin-bottom: 32px;
    }

.loader {
    margin: auto;
    width: 50px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(farthest-side,#000000 94%,#0000) top/8px 8px no-repeat, conic-gradient(#0000 30%,#000000);
    -webkit-mask: radial-gradient(farthest-side,#0000 calc(100% - 8px),#000 0);
    animation: l13 1s infinite linear;
}

@keyframes l13 {
    100% {
        transform: rotate(1turn)
    }
}

code {
    color: #c02d76;
}
