/*
 * app.css — Complementa Bootstrap 5 + Identidad Corporativa
 */

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: #0f172a;
    /* Fallback */
}

/* ── Tarjeta Glassmorphism (Corporativa) ── */
.glass-card {
    background: rgba(15, 23, 42, 0.72) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 16px !important;
    color: #ffffff !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
}

/* Versión CLARA para mejor contraste si se solicita letras negras */
.glass-card-light {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    border-radius: 16px !important;
    color: #0f172a !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
}

/* ── Titulos y Textos ── */
.text-corp-light {
    color: rgba(255, 255, 255, 0.6) !important;
}

.title-corp {
    color: #ffffff !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
}

/* ── Inputs Corporativos (Oscuros/Transparentes) ── */
.form-control-corp {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    padding: 0.75rem 1rem !important;
    border-radius: 8px !important;
}

.form-control-corp:focus {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.1) !important;
}

.form-control-corp::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

.form-label-corp {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    margin-bottom: 0.5rem !important;
}

/* ── Botones ── */
.btn-corp-primary {
    background: #ffffff !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 0.75rem 1.5rem !important;
    transition: all 0.2s ease !important;
}

.btn-corp-primary:hover {
    background: #f1f5f9 !important;
    transform: translateY(-1px);
}

.btn-corp-outline {
    background: rgba(99, 102, 241, 0.1) !important;
    border: 1px solid rgba(99, 102, 241, 0.3) !important;
    color: #a5b4fc !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    padding: 0.5rem 1rem !important;
    transition: all 0.2s ease !important;
    font-size: 0.82rem !important;
}

.btn-corp-outline:hover {
    background: rgba(99, 102, 241, 0.25) !important;
    border-color: rgba(99, 102, 241, 0.5) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* ── Tablas Corporativas ── */
.table-corp {
    color: #ffffff !important;
}

.table-corp thead th {
    background: rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 1rem !important;
}

.table-corp tbody td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 1rem !important;
    vertical-align: middle !important;
}

.table-corp tbody tr:hover {
    background: rgba(255, 255, 255, 0.02) !important;
}

/* ── Tablas Claras (Texto Negro) ── */
.table-light-corp {
    color: #0f172a !important;
}

.table-light-corp thead th {
    background: rgba(0, 0, 0, 0.05) !important;
    color: rgba(0, 0, 0, 0.6) !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1) !important;
    padding: 1rem !important;
}

.table-light-corp tbody td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    padding: 1rem !important;
    vertical-align: middle !important;
}

.table-light-corp tbody tr:hover {
    background: rgba(0, 0, 0, 0.02) !important;
}

/* ── Logo Buemes — auth pages (Login, Register, ForgotPassword, ResetPassword) ── */
/* NOTA: debe estar aquí (global) porque AuthLayout.razor.css no aplica a páginas hijas */
.auth-logo {
    display: block;
    margin: 0 auto 0.65rem;
    width: 38%;          /* % del ancho del contenedor (la card), no del viewport */
    max-width: 160px;    /* tope absoluto en desktop */
    min-width: 80px;     /* mínimo para legibilidad en pantallas muy pequeñas */
    height: auto;
    filter: drop-shadow(0 1px 6px rgba(255, 255, 255, 0.08));
}