/* Estilos personalizados para la pantalla de inicio / login con Bootstrap 5 */

:root {
    --brand-primary: #003366;
    --brand-primary-hover: #002244;
    --brand-accent: #0d6efd;
    --brand-bg: #f0f4f8;
}

body {
    min-height: 100vh;
    background-color: var(--brand-bg);
    background-image: 
        radial-gradient(at 0% 0%, rgba(13, 110, 253, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(0, 51, 102, 0.12) 0px, transparent 50%),
        linear-gradient(135deg, #eef2f6 0%, #e2e8f0 100%);
    background-attachment: fixed;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #334155;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 1rem;
}

.login-card {
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 1.25rem;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    background: #ffffff;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-header {
    text-align: center;
    padding-bottom: 0.5rem;
}

.login-logo {
    max-height: 120px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.08));
    transition: transform 0.3s ease;
}

.login-logo:hover {
    transform: scale(1.03);
}

.login-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--brand-primary);
    letter-spacing: -0.01em;
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
}

.login-subtitle {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
}

.badge-brand {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    display: inline-block;
    margin-top: 0.25rem;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--brand-accent);
}

.form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.input-group-text {
    background-color: #f8fafc;
    border-color: #dee2e6;
    color: #64748b;
}

.btn-brand-primary {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 0.7rem 1.25rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.btn-brand-primary:hover,
.btn-brand-primary:focus {
    background-color: var(--brand-primary-hover);
    border-color: var(--brand-primary-hover);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.25);
    transform: translateY(-1px);
}

.btn-brand-primary:active {
    transform: translateY(0);
}

.btn-brand-outline {
    border: 1.5px solid #cbd5e1;
    color: #475569;
    font-weight: 600;
    padding: 0.65rem 1.25rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.btn-brand-outline:hover {
    background-color: #f8fafc;
    border-color: #94a3b8;
    color: #1e293b;
}

.divider-text {
    display: flex;
    align-items: center;
    text-align: center;
    color: #94a3b8;
    font-size: 0.8rem;
    margin: 1.5rem 0;
}

.divider-text::before,
.divider-text::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.divider-text::before {
    margin-right: 0.75em;
}

.divider-text::after {
    margin-left: 0.75em;
}

.footer-text {
    font-size: 0.8rem;
    color: #64748b;
    text-align: center;
    margin-top: 1.5rem;
}

/* Modales */
.modal-content {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-header {
    border-bottom: 1px solid #f1f5f9;
    padding: 1.25rem 1.5rem;
}

.modal-footer {
    border-top: 1px solid #f1f5f9;
    padding: 1rem 1.5rem;
}

.toggle-password-btn {
    border-left: none;
    background-color: #f8fafc;
    color: #64748b;
}

.toggle-password-btn:hover {
    color: var(--brand-primary);
    background-color: #f1f5f9;
}

/* Estilos específicos para Formulario de Registro */
.section-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--brand-primary);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 0.5rem;
}

.section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brand-primary);
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed #e2e8f0;
}

.notice-box {
    border-radius: 0.75rem;
    border: 1px solid #dbeafe;
    background-color: #eff6ff;
    padding: 0.85rem 1rem;
    color: #1e40af;
    font-size: 0.85rem;
    line-height: 1.45;
}

.password-rules {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    color: #64748b;
}

.password-rules ul {
    margin-bottom: 0;
    padding-left: 1.25rem;
}

.password-rules li {
    margin-bottom: 0.2rem;
}

/* Estilos para las pestañas de condiciones en el modal */
.nav-pills .nav-link {
    color: #475569;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.nav-pills .nav-link:hover {
    background-color: #f1f5f9;
    color: var(--brand-primary);
}

.nav-pills .nav-link.active {
    background-color: var(--brand-primary);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 51, 102, 0.2);
}


