/* =======================================================================
   SISTEMA DE GESTÃO DE OBRAS - PREMIUM DESIGN SYSTEM
   Suporte nativo a Tema Claro & Escuro (Dark Mode)
   Micro-interações fluidas, tipografia refinada e acabamento enterprise
   ======================================================================= */

:root {
    /* --- TEMA CLARO (Default) --- */
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-secondary: #f1f5f9;
    --bg-surface-elevated: #ffffff;
    --bg-sidebar: #090e17;
    --bg-sidebar-hover: #162032;
    --bg-sidebar-active: #2563eb;

    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-inverse: #ffffff;
    --text-sidebar: #94a3b8;
    --text-sidebar-active: #ffffff;

    --border-color: #e2e8f0;
    --border-subtle: #f1f5f9;
    --border-focus: #3b82f6;

    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: rgba(37, 99, 235, 0.08);
    --primary-gradient: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
    
    --accent: #f59e0b;
    --accent-light: rgba(245, 158, 11, 0.1);
    
    --success: #10b981;
    --success-light: #ecfdf5;
    --success-border: #a7f3d0;
    --success-text: #065f46;

    --danger: #ef4444;
    --danger-light: #fef2f2;
    --danger-border: #fecaca;
    --danger-text: #991b1b;

    --warning: #f59e0b;
    --warning-light: #fffbeb;
    --warning-border: #fde68a;
    --warning-text: #92400e;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- TEMA ESCURO (Dark Mode) --- */
[data-theme="dark"] {
    --bg-body: #070a10;
    --bg-surface: #0e1420;
    --bg-surface-secondary: #141c2c;
    --bg-surface-elevated: #182236;
    --bg-sidebar: #05080e;
    --bg-sidebar-hover: #121926;
    --bg-sidebar-active: #2563eb;

    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #8492a6;
    --text-inverse: #070a10;
    --text-sidebar: #798ba3;
    --text-sidebar-active: #ffffff;

    --border-color: #1e293b;
    --border-subtle: #162032;
    --border-focus: #60a5fa;

    --primary: #3b82f6;
    --primary-hover: #60a5fa;
    --primary-light: rgba(59, 130, 246, 0.15);
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%);

    --accent: #fbbf24;
    --accent-light: rgba(251, 191, 36, 0.12);

    --success: #10b981;
    --success-light: rgba(16, 185, 129, 0.12);
    --success-border: rgba(16, 185, 129, 0.25);
    --success-text: #34d399;

    --danger: #f87171;
    --danger-light: rgba(239, 68, 68, 0.12);
    --danger-border: rgba(239, 68, 68, 0.25);
    --danger-text: #fca5a5;

    --warning: #fbbf24;
    --warning-light: rgba(245, 158, 11, 0.12);
    --warning-border: rgba(245, 158, 11, 0.25);
    --warning-text: #fcd34d;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
}

/* Reset Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.25s ease, color 0.25s ease;
}

/* =======================================================================
   ESTRUTURA GERAL (Sidebar + Main + Topbar)
   ======================================================================= */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.app-sidebar {
    width: 270px;
    background-color: var(--bg-sidebar);
    color: var(--text-sidebar);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    border-right: 1px solid var(--border-color);
    transition: transform 0.25s ease;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon-box {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.brand-text strong {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    display: block;
    letter-spacing: -0.2px;
}

.brand-text small {
    color: #798ba3;
    font-size: 12px;
    font-weight: 500;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 14px;
    overflow-y: auto;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 700;
    color: #4c5d75;
    letter-spacing: 1px;
    margin: 20px 0 8px 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-sidebar);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    transition: var(--transition);
}

.nav-item:hover {
    background-color: var(--bg-sidebar-hover);
    color: #ffffff;
    transform: translateX(3px);
}

.nav-item.active {
    background-color: var(--bg-sidebar-active);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.nav-icon {
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #1e293b;
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.user-details .user-name {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    display: block;
}

.user-details .user-role {
    font-size: 11px;
    color: #798ba3;
}

.logout-btn {
    text-decoration: none;
    font-size: 18px;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    color: #94a3b8;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

/* Área Principal */
.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Topbar */
.app-topbar {
    height: 68px;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
}

.topbar-title h1 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

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

/* Botão de Toggle de Tema (Dark/Light) */
.theme-toggle-btn {
    background: var(--bg-surface-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 17px;
    transition: var(--transition);
}

.theme-toggle-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    transform: rotate(15deg);
}

.env-badge {
    background: var(--primary-light);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.date-badge {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.content-container {
    padding: 32px;
    max-width: 1400px;
    width: 100%;
}

/* =======================================================================
   CARDS & COMPONENTES PREMIUM
   ======================================================================= */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card.full-width {
    grid-column: 1 / -1;
}

.card-hero {
    grid-column: 1 / -1;
    background: var(--primary-gradient);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
    position: relative;
    overflow: hidden;
}

.card-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
}

.card-hero h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.card-hero p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 720px;
    margin-bottom: 22px;
    font-size: 15px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags .tag {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.card-header h3 {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.text-muted {
    color: var(--text-muted);
    font-size: 14px;
}

.code-box {
    background: var(--bg-surface-secondary);
    padding: 14px;
    border-radius: var(--radius-sm);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 14px;
    border: 1px solid var(--border-color);
}

.info-callout {
    margin-top: 14px;
    padding: 14px 18px;
    background: var(--warning-light);
    border-left: 4px solid var(--warning);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--warning-text);
}

/* Grid de Módulos */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.module-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.module-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.module-icon {
    font-size: 32px;
    margin-bottom: 14px;
}

.module-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.module-card p {
    font-size: 13px;
    color: var(--text-muted);
    flex: 1;
    margin-bottom: 18px;
}

.module-status {
    align-self: flex-start;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
}

.module-status.active {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid var(--success-border);
}

.module-status.pending {
    background: var(--bg-surface-secondary);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

/* Badges */
.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid var(--success-border);
}

.badge-warning {
    background: var(--warning-light);
    color: var(--warning);
    border: 1px solid var(--warning-border);
}

/* Alertas */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

.alert-success {
    background: var(--success-light);
    color: var(--success-text);
    border: 1px solid var(--success-border);
}

.alert-danger {
    background: var(--danger-light);
    color: var(--danger-text);
    border: 1px solid var(--danger-border);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =======================================================================
   FORMULÁRIOS & BOTÕES PREMIUM
   ======================================================================= */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-control-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.input-icon-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-muted);
    padding: 4px;
    border-radius: 4px;
    transition: color 0.15s;
}

.input-icon-btn:hover {
    color: var(--text-primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

.btn-block {
    width: 100%;
}

/* =======================================================================
   TELA DE LOGIN LUXURY ENTERPRISE (VERTEX CONSTRUCTION OS)
   Split-screen de alto impacto, blueprint grid, aurora glow & telemetria
   ======================================================================= */
.auth-body-universe {
    background-color: #06090e;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.vertex-auth-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
    background-color: var(--bg-body);
}

/* Grade Técnica de Engenharia em Background */
.blueprint-grid-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.45;
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(59, 130, 246, 0.07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(59, 130, 246, 0.07) 1px, transparent 1px);
    z-index: 1;
}

/* -----------------------------------------------------------------------
   LADO ESQUERDO: BANNER DE ENGENHARIA & TELEMETRIA
   ----------------------------------------------------------------------- */
.vertex-hero-side {
    flex: 1.25;
    background: radial-gradient(circle at 10% 20%, #0d1527 0%, #06090e 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 56px 64px;
    color: #ffffff;
    z-index: 2;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

/* Esferas de Luz Aurora Dinâmica */
.aurora-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.aurora-1 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.3) 0%, rgba(6, 182, 212, 0) 70%);
    filter: blur(80px);
    top: -120px;
    left: -100px;
    animation: floatGlow 14s infinite alternate ease-in-out;
}

.aurora-2 {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.22) 0%, rgba(37, 99, 235, 0) 70%);
    filter: blur(75px);
    bottom: -60px;
    right: -60px;
    animation: floatGlow 18s infinite alternate-reverse ease-in-out;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 30px) scale(1.1); }
}

/* Marca Vertex */
.hero-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
}

.vertex-logo-badge {
    display: flex;
    align-items: center;
    gap: 14px;
}

.vertex-logo-svg {
    width: 44px;
    height: 44px;
    filter: drop-shadow(0 6px 14px rgba(37, 99, 235, 0.4));
}

.brand-naming .brand-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #ffffff;
    display: block;
    line-height: 1.1;
}

.brand-naming .brand-sub {
    font-size: 10px;
    font-weight: 700;
    color: #38bdf8;
    letter-spacing: 2px;
    display: block;
}

/* Chip de Telemetria */
.status-live-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: 0.8px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* Conteúdo Central */
.hero-center-content {
    z-index: 2;
    max-width: 620px;
    margin: 36px 0;
}

.badge-engineering {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: #93c5fd;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero-main-heading {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -1px;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero-main-heading span {
    background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 50%, #a5f3fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 16px;
    color: #94a3b8;
    line-height: 1.65;
    margin-bottom: 34px;
}

/* Card de Telemetria Viva */
.telemetry-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.telemetry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #38bdf8, #2563eb, transparent);
}

.telemetry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.telemetry-tag {
    font-size: 10px;
    font-weight: 700;
    color: #38bdf8;
    letter-spacing: 1.2px;
    display: block;
    margin-bottom: 4px;
}

.telemetry-obra-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.telemetry-badge-ok {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.telemetry-progress-wrap {
    margin-bottom: 18px;
}

.telemetry-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.telemetry-progress-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow: hidden;
}

.telemetry-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #06b6d4);
    border-radius: 6px;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.6);
}

.telemetry-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.telemetry-stat small {
    font-size: 11px;
    color: #64748b;
    display: block;
    margin-bottom: 2px;
}

.telemetry-stat strong {
    font-size: 14px;
    font-weight: 700;
    color: #f1f5f9;
}

.text-emerald {
    color: #34d399 !important;
}

/* Rodapé do Banner */
.hero-footer-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 12px;
    z-index: 2;
}

.hero-pillars {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: #94a3b8;
    font-weight: 500;
}

.pillar-separator {
    color: #475569;
}

.hero-copyright {
    color: #64748b;
}

/* -----------------------------------------------------------------------
   LADO DIREITO: FORMULÁRIO DE LOGIN GLASS LUXO
   ----------------------------------------------------------------------- */
.vertex-form-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 56px;
    background-color: var(--bg-surface);
    z-index: 2;
    transition: background-color 0.25s ease;
}

.form-topbar {
    display: flex;
    justify-content: flex-end;
}

.theme-switch-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.theme-switch-pill:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-1px);
}

.form-card-box {
    width: 100%;
    max-width: 440px;
    margin: auto;
}

.form-card-header {
    margin-bottom: 32px;
}

.form-card-header h2 {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.6px;
    margin-bottom: 8px;
}

.form-card-header p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Alertas com Glow */
.alert-glow {
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* Campos de Entrada */
.input-field-group {
    margin-bottom: 22px;
}

.input-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.label-with-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.forgot-password-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

.input-glow-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    pointer-events: none;
    transition: color 0.2s;
}

.input-premium {
    width: 100%;
    padding: 14px 16px 14px 44px;
    background: var(--bg-surface-secondary);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
}

.input-glow-wrapper:focus-within .input-prefix-icon {
    color: var(--primary);
}

.input-premium:focus {
    background: var(--bg-surface);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.password-reveal-btn {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.65;
    padding: 4px;
    border-radius: 6px;
    transition: opacity 0.15s, transform 0.15s;
}

.password-reveal-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Checkbox Customizado */
.form-options-row {
    margin-bottom: 24px;
}

.custom-checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    user-select: none;
}

.custom-checkbox-container input {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Botão Vertex Primário com Shimmer Gradient */
.btn-vertex-primary {
    width: 100%;
    padding: 15px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #06b6d4 100%);
    background-size: 200% auto;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
    transition: all 0.3s ease;
}

.btn-vertex-primary:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -5px rgba(37, 99, 235, 0.5);
}

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

.btn-arrow {
    transition: transform 0.2s ease;
    font-size: 18px;
}

.btn-vertex-primary:hover .btn-arrow {
    transform: translateX(4px);
}

/* Card de Preenchimento Rápido Demo */
.demo-credentials-card {
    margin-top: 28px;
    padding: 16px;
    background: var(--bg-surface-secondary);
    border: 1px dashed var(--border-color);
    border-radius: 12px;
    text-align: center;
}

.demo-card-title {
    font-size: 10px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.btn-demo-autofill {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-demo-autofill:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.demo-info-text {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
}

.demo-info-text code {
    background: rgba(0, 0, 0, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
}

[data-theme="dark"] .demo-info-text code {
    background: rgba(255, 255, 255, 0.1);
}

/* Rodapé de Segurança */
.form-security-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Responsividade Mobile */
@media (max-width: 1024px) {
    .vertex-hero-side {
        display: none;
    }

    .vertex-form-side {
        padding: 40px 24px;
    }
}

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

    .app-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 1000;
        transform: translateX(-100%);
    }

    .app-sidebar.open {
        transform: translateX(0);
    }

    .menu-toggle {
        display: block;
    }

    .content-container {
        padding: 20px;
    }
}
