/* ============================================================
   RegistroRH — paleta e tema base
   Identidade: azul corporativo/jurídico
   ============================================================ */

:root {
    --rh-primary:        #0B3D91;
    --rh-primary-light:  #1E5BB8;
    --rh-primary-dark:   #082B6B;
    --rh-primary-soft:   #E8EEF9;

    --rh-accent:         #C9A227;
    --rh-accent-soft:    #FBF4DC;

    --rh-bg:             #F5F7FA;
    --rh-surface:        #FFFFFF;
    --rh-border:         #E5E8EE;
    --rh-border-strong:  #CBD2DE;

    --rh-text:           #1A1F36;
    --rh-text-muted:     #5A627A;
    --rh-text-light:     #8A93A6;

    --rh-success:        #2E7D32;
    --rh-warning:        #ED6C02;
    --rh-danger:         #C62828;
    --rh-info:           #0277BD;

    --rh-sidebar-w:      260px;
    --rh-topbar-h:       64px;

    --rh-radius:         8px;
    --rh-radius-sm:      6px;
    --rh-shadow-sm:      0 1px 2px rgba(15, 23, 42, 0.06);
    --rh-shadow:         0 2px 8px rgba(15, 23, 42, 0.08);
    --rh-shadow-lg:      0 8px 24px rgba(15, 23, 42, 0.12);

    --rh-transition:     all 0.15s ease;
}

/* ===================== Base ===================== */

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    color: var(--rh-text);
    background: var(--rh-bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--rh-primary); text-decoration: none; }
a:hover { color: var(--rh-primary-dark); }

h1, h2, h3, h4, h5, h6 {
    color: var(--rh-text);
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

/* ===================== Layout admin ===================== */

.rh-app {
    display: flex;
    min-height: 100vh;
}

.rh-sidebar {
    width: var(--rh-sidebar-w);
    background: var(--rh-surface);
    border-right: 1px solid var(--rh-border);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 1000;
}

.rh-main {
    margin-left: var(--rh-sidebar-w);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.rh-topbar {
    height: var(--rh-topbar-h);
    background: var(--rh-surface);
    border-bottom: 1px solid var(--rh-border);
    position: sticky;
    top: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.rh-content {
    flex: 1;
    padding: 28px 32px;
}

/* ===================== Sidebar ===================== */

.rh-sidebar-brand {
    height: var(--rh-topbar-h);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    border-bottom: 1px solid var(--rh-border);
}

.rh-sidebar-brand .rh-logo {
    width: 36px; height: 36px;
    border-radius: var(--rh-radius-sm);
    background: linear-gradient(135deg, var(--rh-primary), var(--rh-primary-light));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.5px;
    box-shadow: var(--rh-shadow-sm);
}

.rh-sidebar-brand .rh-brand-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--rh-text);
    letter-spacing: -0.3px;
}

.rh-sidebar-brand .rh-brand-name span { color: var(--rh-primary); }

.rh-sidebar-nav { padding: 12px 0; }

.rh-nav-section-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--rh-text-light);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 16px 24px 8px;
}

.rh-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    color: var(--rh-text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: var(--rh-transition);
    border-left: 3px solid transparent;
    cursor: pointer;
}

.rh-nav-item:hover {
    background: var(--rh-primary-soft);
    color: var(--rh-primary);
}

.rh-nav-item.active {
    background: var(--rh-primary-soft);
    color: var(--rh-primary);
    border-left-color: var(--rh-primary);
    font-weight: 600;
}

.rh-nav-item .material-symbols-outlined {
    font-size: 20px;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.rh-nav-item.active .material-symbols-outlined {
    font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

/* ===================== Topbar ===================== */

.rh-topbar-title h1 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--rh-text);
}

.rh-topbar-title .rh-breadcrumb {
    font-size: 12px;
    color: var(--rh-text-light);
    margin-top: 2px;
}

.rh-topbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.rh-icon-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--rh-text-muted);
    cursor: pointer;
    transition: var(--rh-transition);
    background: transparent;
    border: none;
}

.rh-icon-btn:hover {
    background: var(--rh-bg);
    color: var(--rh-primary);
}

.rh-user-badge {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 12px 6px 6px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--rh-transition);
}

.rh-user-badge:hover { background: var(--rh-bg); }

.rh-user-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rh-primary), var(--rh-primary-light));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 600;
    font-size: 13px;
}

.rh-user-info { line-height: 1.2; }
.rh-user-info .rh-user-name { font-size: 13px; font-weight: 600; color: var(--rh-text); }
.rh-user-info .rh-user-role { font-size: 11px; color: var(--rh-text-light); }

/* ===================== Cards / containers ===================== */

.rh-card {
    background: var(--rh-surface);
    border: 1px solid var(--rh-border);
    border-radius: var(--rh-radius);
    box-shadow: var(--rh-shadow-sm);
    overflow: hidden;
}

.rh-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--rh-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rh-card-header h2 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}

.rh-card-body { padding: 20px; }

/* ===================== Stat cards (dashboard) ===================== */

.rh-stat-card {
    background: var(--rh-surface);
    border: 1px solid var(--rh-border);
    border-radius: var(--rh-radius);
    padding: 20px;
    box-shadow: var(--rh-shadow-sm);
    transition: var(--rh-transition);
}

.rh-stat-card:hover {
    box-shadow: var(--rh-shadow);
    transform: translateY(-1px);
}

.rh-stat-card .rh-stat-label {
    font-size: 12px;
    color: var(--rh-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 8px;
}

.rh-stat-card .rh-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--rh-text);
    line-height: 1;
}

.rh-stat-card .rh-stat-foot {
    margin-top: 12px;
    font-size: 12px;
    color: var(--rh-text-muted);
    display: flex; align-items: center; gap: 4px;
}

.rh-stat-card .rh-stat-foot.up    { color: var(--rh-success); }
.rh-stat-card .rh-stat-foot.down  { color: var(--rh-danger); }
.rh-stat-card .rh-stat-foot.warn  { color: var(--rh-warning); }

.rh-stat-icon {
    width: 44px; height: 44px;
    border-radius: var(--rh-radius-sm);
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--rh-primary-soft);
    color: var(--rh-primary);
    margin-bottom: 16px;
}

.rh-stat-icon.accent  { background: var(--rh-accent-soft); color: var(--rh-accent); }
.rh-stat-icon.success { background: #E6F4EA; color: var(--rh-success); }
.rh-stat-icon.warning { background: #FFF4E0; color: var(--rh-warning); }
.rh-stat-icon.danger  { background: #FDECEC; color: var(--rh-danger); }

/* ===================== Buttons ===================== */

.rh-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: var(--rh-radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--rh-transition);
    border: 1px solid transparent;
    background: var(--rh-bg);
    color: var(--rh-text);
}

.rh-btn:hover { background: var(--rh-border); }

.rh-btn-primary {
    background: var(--rh-primary);
    color: #fff;
    border-color: var(--rh-primary);
}

.rh-btn-primary:hover {
    background: var(--rh-primary-dark);
    border-color: var(--rh-primary-dark);
    color: #fff;
}

.rh-btn-outline {
    background: transparent;
    color: var(--rh-primary);
    border-color: var(--rh-border-strong);
}

.rh-btn-outline:hover {
    background: var(--rh-primary-soft);
    border-color: var(--rh-primary);
}

.rh-btn .material-symbols-outlined { font-size: 18px; }

/* ===================== Tables ===================== */

.rh-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.rh-table th {
    text-align: left;
    padding: 12px 16px;
    background: var(--rh-bg);
    color: var(--rh-text-muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--rh-border);
}

.rh-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--rh-border);
    color: var(--rh-text);
}

.rh-table tr:last-child td { border-bottom: none; }
.rh-table tbody tr:hover { background: #FAFBFD; }

/* ===================== Status pills ===================== */

.rh-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.rh-pill-success { background: #E6F4EA; color: var(--rh-success); }
.rh-pill-warning { background: #FFF4E0; color: var(--rh-warning); }
.rh-pill-danger  { background: #FDECEC; color: var(--rh-danger); }
.rh-pill-info    { background: var(--rh-primary-soft); color: var(--rh-primary); }
.rh-pill-muted   { background: var(--rh-bg); color: var(--rh-text-muted); }

/* ===================== Page header (área de conteúdo) ===================== */

.rh-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 12px;
    flex-wrap: wrap;
}

.rh-page-header h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--rh-text);
}

.rh-page-header .rh-page-subtitle {
    font-size: 13px;
    color: var(--rh-text-muted);
}

/* ===================== Login (página fora do layout admin) ===================== */

.rh-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--rh-primary-dark) 0%, var(--rh-primary) 100%);
    padding: 24px;
}

.rh-login-card {
    width: 100%;
    max-width: 420px;
    background: var(--rh-surface);
    border-radius: 12px;
    box-shadow: var(--rh-shadow-lg);
    padding: 36px 32px;
}

.rh-login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.rh-login-brand .rh-logo {
    width: 44px; height: 44px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--rh-primary), var(--rh-primary-light));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.rh-login-brand .rh-brand-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--rh-text);
}

.rh-login-brand .rh-brand-name span { color: var(--rh-primary); }

.rh-login-card h1 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.rh-login-card .rh-login-subtitle {
    color: var(--rh-text-muted);
    font-size: 13px;
    margin-bottom: 24px;
}

/* ===================== Form fields ===================== */

.rh-field { margin-bottom: 16px; }

.rh-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--rh-text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.rh-input-wrap { position: relative; }

.rh-input {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--rh-border-strong);
    border-radius: var(--rh-radius-sm);
    background: var(--rh-surface);
    font-size: 14px;
    color: var(--rh-text);
    transition: var(--rh-transition);
    font-family: inherit;
}

.rh-input:focus {
    outline: none;
    border-color: var(--rh-primary);
    box-shadow: 0 0 0 3px rgba(11, 61, 145, 0.12);
}

.rh-input-wrap .rh-input-icon-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--rh-text-light);
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
}

.rh-input-wrap .rh-input-icon-btn:hover { color: var(--rh-primary); background: var(--rh-bg); }

.rh-input-wrap .rh-input.rh-with-icon { padding-right: 42px; }

/* ===================== Hero / Banner ===================== */

.rh-hero {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    padding: 28px 32px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.18) 0%, transparent 55%),
        radial-gradient(circle at bottom left, rgba(201,162,39,0.25) 0%, transparent 50%),
        linear-gradient(135deg, var(--rh-primary-dark) 0%, var(--rh-primary) 60%, var(--rh-primary-light) 100%);
    box-shadow: var(--rh-shadow);
    margin-bottom: 24px;
}

.rh-hero .rh-hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    align-items: center;
}

.rh-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
    backdrop-filter: blur(6px);
}

.rh-hero h1 {
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 8px 0;
    letter-spacing: -0.4px;
}

.rh-hero p {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    max-width: 560px;
    margin: 0 0 18px 0;
}

.rh-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.rh-hero .rh-btn-white {
    background: #fff; color: var(--rh-primary);
    border: none; font-weight: 600;
}
.rh-hero .rh-btn-white:hover { background: rgba(255,255,255,0.92); }

.rh-hero .rh-btn-ghost {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
}
.rh-hero .rh-btn-ghost:hover { background: rgba(255,255,255,0.20); }

.rh-hero-meta {
    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 12px;
    padding: 18px 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.rh-hero-meta .rh-hero-meta-item .rh-hero-meta-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 4px;
}
.rh-hero-meta .rh-hero-meta-item .rh-hero-meta-value {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

@media (max-width: 900px) {
    .rh-hero .rh-hero-grid { grid-template-columns: 1fr; }
}

/* ===================== Sparkline / Chart wrappers =====================
   Chart.js precisa de um pai com position:relative e altura fixa quando
   maintainAspectRatio=false; sem isso o canvas redimensiona em loop.
*/
.rh-spark-wrap {
    position: relative;
    height: 40px;
    margin-top: 12px;
}
.rh-chart-wrap { position: relative; width: 100%; }
.rh-chart-wrap.h-280 { height: 280px; }
.rh-chart-wrap.h-220 { height: 220px; }

.rh-spark-wrap > canvas,
.rh-chart-wrap > canvas {
    position: absolute !important;
    top: 0; left: 0;
    width: 100% !important;
    height: 100% !important;
}

/* ===================== Timeline ===================== */

.rh-timeline { position: relative; padding-left: 22px; }
.rh-timeline::before {
    content: "";
    position: absolute;
    top: 6px; bottom: 6px; left: 7px;
    width: 2px;
    background: var(--rh-border);
}

.rh-timeline-item {
    position: relative;
    padding-bottom: 18px;
}
.rh-timeline-item:last-child { padding-bottom: 0; }

.rh-timeline-dot {
    position: absolute;
    left: -22px;
    top: 4px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--rh-surface);
    border: 3px solid var(--rh-primary);
}
.rh-timeline-dot.success { border-color: var(--rh-success); }
.rh-timeline-dot.warning { border-color: var(--rh-warning); }
.rh-timeline-dot.danger  { border-color: var(--rh-danger); }
.rh-timeline-dot.accent  { border-color: var(--rh-accent); }

.rh-timeline-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--rh-text);
    margin: 0 0 2px 0;
}
.rh-timeline-meta {
    font-size: 12px;
    color: var(--rh-text-muted);
}

/* ===================== Avatar (lista/tabela) ===================== */

.rh-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    color: #fff;
    background: var(--rh-primary);
    flex-shrink: 0;
}
.rh-avatar.sm { width: 26px; height: 26px; font-size: 10px; }
.rh-avatar.lg { width: 44px; height: 44px; font-size: 14px; }

.rh-avatar.tone-1 { background: linear-gradient(135deg, #1565C0, #1976D2); }
.rh-avatar.tone-2 { background: linear-gradient(135deg, #6A1B9A, #8E24AA); }
.rh-avatar.tone-3 { background: linear-gradient(135deg, #2E7D32, #43A047); }
.rh-avatar.tone-4 { background: linear-gradient(135deg, #C9A227, #E0B23A); }
.rh-avatar.tone-5 { background: linear-gradient(135deg, #C62828, #E53935); }
.rh-avatar.tone-6 { background: linear-gradient(135deg, #00838F, #00ACC1); }
.rh-avatar.tone-7 { background: linear-gradient(135deg, #4E342E, #6D4C41); }
.rh-avatar.tone-8 { background: linear-gradient(135deg, #283593, #3949AB); }

.rh-avatar-stack { display: inline-flex; }
.rh-avatar-stack .rh-avatar { border: 2px solid var(--rh-surface); margin-left: -8px; }
.rh-avatar-stack .rh-avatar:first-child { margin-left: 0; }

.rh-user-cell { display: flex; align-items: center; gap: 10px; }
.rh-user-cell .rh-user-cell-name { font-weight: 600; color: var(--rh-text); line-height: 1.2; }
.rh-user-cell .rh-user-cell-meta { font-size: 12px; color: var(--rh-text-muted); }

/* ===================== Progress bar ===================== */

.rh-progress {
    height: 6px;
    background: var(--rh-bg);
    border-radius: 100px;
    overflow: hidden;
}
.rh-progress > span {
    display: block;
    height: 100%;
    border-radius: 100px;
    background: linear-gradient(90deg, var(--rh-primary), var(--rh-primary-light));
}
.rh-progress.success > span { background: linear-gradient(90deg, #2E7D32, #66BB6A); }
.rh-progress.warning > span { background: linear-gradient(90deg, #ED6C02, #FFA726); }
.rh-progress.danger  > span { background: linear-gradient(90deg, #C62828, #EF5350); }

/* ===================== Search input (topbar / filtros) ===================== */

.rh-search {
    position: relative;
    width: 320px;
    max-width: 100%;
}
.rh-search input {
    width: 100%;
    height: 38px;
    padding: 0 14px 0 40px;
    border: 1px solid var(--rh-border);
    border-radius: 100px;
    background: var(--rh-bg);
    font-size: 13px;
    color: var(--rh-text);
    transition: var(--rh-transition);
    font-family: inherit;
}
.rh-search input:focus {
    outline: none;
    background: var(--rh-surface);
    border-color: var(--rh-primary);
    box-shadow: 0 0 0 3px rgba(11, 61, 145, 0.10);
}
.rh-search .material-symbols-outlined {
    position: absolute;
    left: 12px; top: 50%; transform: translateY(-50%);
    color: var(--rh-text-light);
    font-size: 20px;
    pointer-events: none;
}

/* ===================== Filter chips ===================== */

.rh-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.rh-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--rh-bg);
    border: 1px solid var(--rh-border);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    color: var(--rh-text-muted);
    cursor: pointer;
    transition: var(--rh-transition);
}
.rh-chip:hover {
    border-color: var(--rh-primary);
    color: var(--rh-primary);
}
.rh-chip.active {
    background: var(--rh-primary);
    border-color: var(--rh-primary);
    color: #fff;
}
.rh-chip .rh-chip-count {
    background: rgba(255,255,255,0.20);
    padding: 1px 7px;
    border-radius: 100px;
    font-size: 11px;
}
.rh-chip:not(.active) .rh-chip-count {
    background: rgba(0,0,0,0.06);
    color: var(--rh-text-muted);
}

/* ===================== Empty state ===================== */

.rh-empty {
    padding: 60px 24px;
    text-align: center;
    color: var(--rh-text-muted);
}
.rh-empty .rh-empty-icon {
    width: 60px; height: 60px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--rh-primary-soft);
    color: var(--rh-primary);
    display: flex; align-items: center; justify-content: center;
}
.rh-empty .rh-empty-icon .material-symbols-outlined { font-size: 30px; }
.rh-empty h3 { font-size: 15px; margin-bottom: 4px; color: var(--rh-text); }
.rh-empty p { font-size: 13px; margin: 0; }

/* ===================== Login split ===================== */

.rh-login-split {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    background: var(--rh-surface);
}

.rh-login-aside {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(201,162,39,0.20) 0%, transparent 50%),
        radial-gradient(circle at bottom left, rgba(30,91,184,0.40) 0%, transparent 55%),
        linear-gradient(135deg, var(--rh-primary-dark) 0%, var(--rh-primary) 100%);
    padding: 48px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.rh-login-aside .rh-login-brand-wide {
    display: flex; align-items: center; gap: 12px;
}
.rh-login-aside .rh-login-brand-wide .rh-logo {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.20);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 18px;
}
.rh-login-aside .rh-login-brand-wide .rh-brand-name { font-size: 18px; font-weight: 700; }

.rh-login-pitch h1 {
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin: 0 0 14px 0;
}
.rh-login-pitch p {
    color: rgba(255,255,255,0.82);
    font-size: 15px;
    line-height: 1.6;
    max-width: 460px;
    margin: 0 0 28px 0;
}

.rh-login-features {
    display: grid;
    gap: 16px;
}
.rh-login-feature {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.rh-login-feature .rh-feature-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.rh-login-feature .rh-feature-title {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 2px 0;
}
.rh-login-feature .rh-feature-desc {
    color: rgba(255,255,255,0.72);
    font-size: 12.5px;
    line-height: 1.5;
}

.rh-login-foot {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

.rh-login-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

.rh-login-form {
    width: 100%;
    max-width: 380px;
}

@media (max-width: 900px) {
    .rh-login-split { grid-template-columns: 1fr; }
    .rh-login-aside { display: none; }
}

/* ===================== Utilidades ===================== */

.rh-row { display: grid; gap: 20px; }
.rh-row.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rh-row.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rh-row.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 1100px) {
    .rh-row.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
    .rh-row.cols-4, .rh-row.cols-3, .rh-row.cols-2 { grid-template-columns: 1fr; }
    .rh-sidebar { transform: translateX(-100%); transition: transform 0.2s ease; }
    .rh-sidebar.open { transform: translateX(0); }
    .rh-main { margin-left: 0; }
}

.rh-flex { display: flex; }
.rh-flex-between { display: flex; align-items: center; justify-content: space-between; }
.rh-gap-8 { gap: 8px; }
.rh-gap-12 { gap: 12px; }
.rh-mt-12 { margin-top: 12px; }
.rh-mt-24 { margin-top: 24px; }
.rh-mb-8 { margin-bottom: 8px; }
.rh-mb-16 { margin-bottom: 16px; }
.rh-text-muted { color: var(--rh-text-muted); }
.rh-text-small { font-size: 12px; }
