﻿/* login-custom.css */

/* Fuentes personalizadas (Ejemplo con Google Fonts) */
/* Importa tus fuentes desde Google Fonts o similar */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Open+Sans:wght@400;600&display=swap');

/*Para poder modificar la distancia de los margenes del rz-body para que quede ajustada la pagina*/

.rz-body{
    padding:0px !important;
}

#articleBody {
    padding-left: 0rem !important;
    padding-right: 0rem !important;
}

body {
    font-family: 'Open Sans', sans-serif; /* Fuente base */
}

.login-page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 94.7vh;
    /* Fondo temático: Reemplaza con tu imagen o usa un color/gradiente */
    background: linear-gradient(to bottom right, #1a1a2e, #16213e, #0f3460); /* Ejemplo de gradiente oscuro */
    /* background-image: url('/images/fantasy-scroll-bg.jpg'); */ /* Descomenta y usa tu imagen */
    background-size: cover;
    background-position: center;
    padding: 20px;
    box-sizing: border-box; /* Asegura que el padding no añada ancho */
}

.login-card-custom {
    background-color: rgba(25, 25, 35, 0.95); /* Fondo semitransparente oscuro */
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7); /* Sombra más pronunciada y oscura */
    padding: 40px;
    max-width: 480px; /* Un poco más ancho */
    width: 100%;
    color: #e0e0e0; /* Color de texto general claro */
    border: 1px solid rgba(70, 70, 90, 0.5); /* Borde sutil */
    animation: fadeIn 0.8s ease-out; /* Animación de aparición */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-title-custom {
    font-family: 'Cinzel', serif; /* Fuente más "épica" para títulos */
    font-size: 2.8em;
    font-weight: 700;
    color: #ffd700; /* Dorado para un toque de fantasía */
    margin-bottom: 8px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.card-subtitle-custom {
    font-size: 1.1em;
    color: #c0c0c0;
    margin-bottom: 30px;
}

.card-divider-custom {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(150, 150, 150, 0.75), rgba(255, 255, 255, 0));
    margin-top: 25px;
    margin-bottom: 35px;
}

.form-group-custom {
    margin-bottom: 20px; /* Espaciado entre grupos */
}

.form-label-custom {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #e0e0e0;
    font-size: 0.95em;
}

.input-icon-container {
    position: relative;
    display: flex;
    align-items: center;
}

.form-control-custom {
    width: 100%;
    padding: 12px 15px 12px 45px; /* Más padding a la izquierda para el icono */
    background-color: #2e3540; /* Fondo más oscuro para el input */
    border: 1px solid #4a5463;
    border-radius: 6px;
    color: #f0f0f0;
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box; /* Crucial para el padding */
}

    .form-control-custom::placeholder {
        color: #a0a0a0;
    }

    .form-control-custom:focus {
        border-color: #6a0dad; /* Color de acento al enfocar */
        box-shadow: 0 0 0 0.2rem rgba(106, 13, 173, 0.4);
        outline: none; /* Eliminar el contorno por defecto del navegador */
    }

.input-icon {
    position: absolute;
    left: 15px;
    color: #a0a0a0; /* Color del icono */
    font-size: 1.1em;
}

.validation-message-custom {
    font-size: 0.85em;
    color: #ff6b6b; /* Rojo más vibrante para errores */
    margin-top: 5px;
    display: block;
}

.form-check-custom {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Espacia el checkbox del enlace */
    margin-top: 20px;
}

.form-check-input-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #6a0dad; /* Borde del checkbox con color de acento */
    border-radius: 4px;
    background-color: #2e3540;
    cursor: pointer;
    margin-right: 8px; /* Espacio entre el checkbox y la etiqueta */
    appearance: none; /* Elimina estilos por defecto del navegador */
    -webkit-appearance: none;
    position: relative;
    flex-shrink: 0; /* Evita que se encoja */
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

    .form-check-input-custom:checked {
        background-color: #6a0dad;
        border-color: #6a0dad;
    }

        .form-check-input-custom:checked::before {
            content: '\2713'; /* Símbolo de "tick" */
            display: block;
            color: white;
            font-size: 14px;
            line-height: 1;
            text-align: center;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

.form-check-label-custom {
    color: #e0e0e0;
    cursor: pointer;
    font-size: 0.95em;
    user-select: none; /* Evita selección de texto */
}

.forgot-password-link {
    color: #87ceeb; /* Un azul claro para los enlaces de información */
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

    .forgot-password-link:hover {
        color: #add8e6;
        text-decoration: underline;
    }

.btn-submit-custom {
    padding: 14px 25px;
    font-size: 1.15em;
    font-weight: bold;
    border-radius: 8px;
    background: linear-gradient(45deg, #6a0dad, #9e3dff); /* Gradiente para el botón */
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .btn-submit-custom:hover:not(:disabled) {
        background: linear-gradient(45deg, #550a8d, #8a2be2); /* Gradiente más oscuro al pasar el ratón */
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    }

    .btn-submit-custom:disabled {
        background: #5a5a5a;
        cursor: not-allowed;
        opacity: 0.8;
        box-shadow: none;
        transform: none;
    }

/* Spinner de carga de Bootstrap */
.spinner-border {
    width: 1.25rem;
    height: 1.25rem;
    vertical-align: -0.125em;
    border: 0.2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    -webkit-animation: .75s linear infinite spinner-border;
    animation: .75s linear infinite spinner-border;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

.additional-links-custom {
    margin-top: 30px;
    border-top: 1px dashed rgba(100, 100, 100, 0.5); /* Línea divisoria sutil */
    padding-top: 25px;
}

.additional-link {
    color: #add8e6; /* Azul claro para los enlaces */
    text-decoration: none;
    font-size: 0.95em;
    margin-bottom: 10px;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block; /* Para aplicar transform */
}

    .additional-link:hover {
        color: #c0f0ff;
        text-decoration: underline;
        transform: translateX(5px); /* Pequeño movimiento al pasar el ratón */
    }

.status-message.alert-danger {
    background-color: #4a1c1c; /* Fondo oscuro rojizo para errores */
    color: #ffabab; /* Texto rojo claro */
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 25px;
    border: 1px solid #7c2d2d;
    font-weight: 600;
    text-align: center;
}

.login-error-area {
    width: 100%;
}

.login-error-area .login-error-alert {
    background-color: #4a1c1c;
    color: #ffabab;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 25px;
    border: 1px solid #7c2d2d;
    font-weight: 600;
    text-align: center;
}

.login-error-area .login-error-alert i {
    margin-right: 6px;
}

/* Estilos para el picker de logins externos */
.external-logins-section {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px dashed rgba(100, 100, 100, 0.5);
}

.external-logins-title {
    color: #e0e0e0;
    font-size: 1.2em;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Ocultar si ExternalLoginPicker no genera contenido */
.external-logins-section:empty {
    display: none;
}

/* Media Queries para responsividad */
@media (max-width: 600px) {
    .login-card-custom {
        padding: 30px 20px; /* Menos padding en móviles */
        margin: 10px;
    }

    .card-title-custom {
        font-size: 2.2em;
    }

    .card-subtitle-custom {
        font-size: 1em;
    }

    .btn-submit-custom {
        padding: 12px 20px;
        font-size: 1em;
    }
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #a0a0a0;
    font-size: 1.1em;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

    .password-toggle-btn:hover {
        color: #ffd700; /* Amarillo/dorado al pasar el mouse */
    }