/* ==========================================================================
   BROTHER EMPLOYE - DESIGN SYSTEM & STYLESHEET
   Aesthetics: Deep Slate / Cyber Navy, Emerald & Cyan Accents, Glassmorphism
   ========================================================================== */

:root {
    --bg-dark: #090d16;
    --bg-card: #111827;
    --bg-card-hover: #1f293d;
    --bg-glass: rgba(17, 24, 39, 0.75);
    --border-subtle: #1f2937;
    --border-focus: #38bdf8;

    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dim: #6b7280;

    --accent-cyan: #38bdf8;
    --accent-cyan-glow: rgba(56, 189, 248, 0.25);
    --accent-emerald: #10b981;
    --accent-emerald-glow: rgba(16, 185, 129, 0.25);
    --accent-amber: #f59e0b;
    --accent-purple: #a855f7;
    --accent-rose: #f43f5e;

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 15px var(--accent-cyan-glow);
}

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

body.theme-dark {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ================= HEADER ================= */
.app-header {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo-icon {
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-emerald));
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    box-shadow: 0 0 12px var(--accent-cyan-glow);
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--accent-cyan);
    font-weight: 500;
    display: block;
}

/* Central Nav Tabs */
.main-nav {
    display: flex;
    background: #0d131f;
    padding: 4px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    gap: 4px;
}

.nav-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-main);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.nav-tab:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-tab.active {
    background: var(--accent-cyan);
    color: #090d16;
    box-shadow: 0 0 10px var(--accent-cyan-glow);
}

/* Header Controls: Profile Switcher & AI Provider */
.header-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-switch-btn {
    background: #1e293b;
    border: 1px solid var(--border-subtle);
    padding: 6px 14px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--text-main);
    transition: all 0.2s ease;
}

.profile-switch-btn:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 12px var(--accent-cyan-glow);
    transform: translateY(-1px);
}

.profile-avatar {
    font-size: 1.4rem;
}

.profile-info-mini {
    text-align: left;
}

.profile-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
}

.profile-role-tag {
    font-size: 0.7rem;
    color: var(--accent-emerald);
    font-family: var(--font-mono);
}

.switch-icon {
    font-size: 1rem;
    color: var(--text-muted);
}

.ai-provider-badge {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--accent-cyan);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: 0.78rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-pulse {
    width: 8px;
    height: 8px;
    background-color: var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-emerald);
}

/* ================= MAIN CONTAINER ================= */
.app-container {
    flex: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 24px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.25s ease-in-out;
}

.tab-pane.active {
    display: block;
}

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

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

.pane-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.section-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 4px;
}

.pane-actions {
    display: flex;
    gap: 10px;
}

/* ================= BUTTONS & INPUTS ================= */
.btn {
    font-family: var(--font-main);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn.primary {
    background: var(--accent-cyan);
    color: #090d16;
}

.btn.primary:hover {
    background: #7dd3fc;
    box-shadow: 0 0 12px var(--accent-cyan-glow);
}

.btn.secondary {
    background: #1e293b;
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
}

.btn.secondary:hover {
    background: #334155;
    border-color: #475569;
}

.btn.danger {
    background: rgba(244, 63, 94, 0.15);
    color: var(--accent-rose);
    border: 1px solid rgba(244, 63, 94, 0.3);
}

.btn.danger:hover {
    background: var(--accent-rose);
    color: #ffffff;
}

.btn-block {
    width: 100%;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-input, .form-select, textarea.form-input {
    width: 100%;
    background: #0d131f;
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.form-input:focus, .form-select:focus, textarea.form-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan-glow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.help-text {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 12px;
}

/* ================= ABA 1: JOBS GRID ================= */
.filters-bar {
    display: flex;
    gap: 16px;
    background: var(--bg-card);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    margin-bottom: 24px;
}

.search-input-group {
    flex: 1;
    position: relative;
}

.search-input-group .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
}

.search-input-group input {
    width: 100%;
    background: #090d16;
    border: 1px solid var(--border-subtle);
    color: #ffffff;
    padding: 10px 14px 10px 38px;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group select {
    background: #090d16;
    border: 1px solid var(--border-subtle);
    color: #ffffff;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 20px;
}

.job-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-card);
}

.job-card:hover {
    border-color: #38bdf8;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.15);
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.job-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
}

.job-company {
    font-size: 0.9rem;
    color: var(--accent-cyan);
    font-weight: 600;
    margin-top: 2px;
}

.match-score-badge {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.4);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 4px;
}

.match-score-badge.medium {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-amber);
    border-color: rgba(245, 158, 11, 0.4);
}

.match-score-badge.low {
    background: rgba(244, 63, 94, 0.15);
    color: var(--accent-rose);
    border-color: rgba(244, 63, 94, 0.4);
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0;
}

.tag-pill {
    background: #1e293b;
    color: #cbd5e1;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
}

.job-description-snippet {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.match-insights-box {
    background: #090d16;
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 16px;
    font-size: 0.82rem;
}

.match-insights-box .insight-title {
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 6px;
}

.match-insights-box ul {
    padding-left: 18px;
    color: #cbd5e1;
}

.match-insights-box li {
    margin-bottom: 4px;
}

.job-card-actions {
    display: flex;
    gap: 8px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 14px;
}

/* ================= ABA 2: GERADOR DE CURRÍCULO ATS ================= */
.resume-workspace {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 24px;
}

.resume-controls-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-section {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
}

.card-section h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #cbd5e1;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-cyan);
    cursor: pointer;
}

/* Preview ATS no padrão Folha A4 */
.resume-preview-panel {
    display: flex;
    justify-content: center;
    background: #070a10;
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    overflow-y: auto;
    max-height: 800px;
}

.a4-sheet {
    background: #ffffff;
    color: #111827;
    width: 100%;
    max-width: 800px;
    min-height: 1000px;
    padding: 40px 48px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    font-family: var(--font-main);
}

.ats-markdown-view h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    border-bottom: 2px solid #0f172a;
    padding-bottom: 4px;
    margin-bottom: 4px;
}

.ats-markdown-view h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 2px;
    margin-top: 18px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ats-markdown-view h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 10px;
    margin-bottom: 2px;
}

.ats-markdown-view p, .ats-markdown-view li {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #334155;
}

.ats-markdown-view ul {
    padding-left: 20px;
    margin-bottom: 10px;
}

.ats-markdown-view strong {
    color: #0f172a;
}

.ats-markdown-view hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 12px 0;
}

/* ================= ABA 3: KANBAN CRM ================= */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 16px;
    min-height: 600px;
}

.kanban-column {
    background: #0d131f;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    flex-direction: column;
    min-width: 220px;
}

.column-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 12px;
}

.stage-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot-yellow { background: var(--accent-amber); }
.dot-blue { background: #3b82f6; }
.dot-purple { background: var(--accent-purple); }
.dot-orange { background: #f97316; }
.dot-cyan { background: var(--accent-cyan); }
.dot-emerald { background: var(--accent-emerald); }

.stage-title {
    font-size: 0.85rem;
    font-weight: 700;
    flex: 1;
}

.column-count {
    background: #1e293b;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    color: var(--text-muted);
}

.kanban-cards-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.crm-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.crm-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
}

.crm-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
}

.crm-card-company {
    font-size: 0.8rem;
    color: var(--accent-cyan);
    font-weight: 600;
    margin-top: 2px;
}

.crm-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 0.72rem;
    color: var(--text-dim);
}

/* ================= ABA 4: COPILOT HUD ================= */
.hud-embedded-container {
    background: #090d16;
    border: 1px solid #1e293b;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    min-height: 650px;
}

.hud-top-bar {
    background: #111827;
    border-bottom: 1px solid var(--border-subtle);
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hud-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-emerald);
}

.hud-brand-title {
    font-size: 1rem;
    font-weight: 700;
}

.hud-persona-badge {
    background: #1e293b;
    border: 1px solid var(--border-subtle);
    color: var(--accent-cyan);
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
}

.hud-actions-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.hud-select {
    background: #0d131f;
    border: 1px solid var(--border-subtle);
    color: #ffffff;
    font-size: 0.85rem;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
}

.hud-btn-listen.active {
    background: var(--accent-rose) !important;
    color: #ffffff !important;
    animation: pulseListen 1.5s infinite;
}

@keyframes pulseListen {
    0% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(244, 63, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0); }
}

.hud-live-transcription {
    background: #0d131f;
    border-bottom: 1px solid var(--border-subtle);
    padding: 10px 20px;
    font-size: 0.85rem;
    display: flex;
    gap: 10px;
}

.transcription-label {
    color: var(--accent-cyan);
    font-weight: 700;
    font-size: 0.78rem;
}

.transcription-text {
    color: #e2e8f0;
    font-style: italic;
}

.hud-teleprompter {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    max-height: 450px;
}

.teleprompter-welcome {
    background: #111827;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
}

.teleprompter-welcome h3 {
    color: var(--accent-cyan);
    margin-bottom: 8px;
}

.hud-answers-stream {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.answer-card {
    background: #111827;
    border-left: 4px solid var(--accent-cyan);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    box-shadow: var(--shadow-card);
}

.answer-card .question-heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 10px;
}

.answer-card .response-content {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #ffffff;
}

.answer-card .response-content strong {
    color: var(--accent-cyan);
}

.hud-bottom-bar {
    background: #111827;
    border-top: 1px solid var(--border-subtle);
    padding: 14px 20px;
    display: flex;
    gap: 10px;
}

.hud-bottom-bar input {
    flex: 1;
    background: #090d16;
    border: 1px solid var(--border-subtle);
    color: #ffffff;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
}

/* ================= ABA 5: SETTINGS ================= */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
}

/* ================= MODAIS ================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-overlay.hidden {
    display: none;
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.modal-card.modal-large {
    max-width: 850px;
}

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

.modal-close-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-close-btn:hover {
    color: #ffffff;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-subtle);
}

/* Toast Container */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 3000;
}

.toast {
    background: #1e293b;
    border: 1px solid var(--border-subtle);
    color: #ffffff;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideUp 0.2s ease-out;
}

.toast.success { border-left: 4px solid var(--accent-emerald); }
.toast.error { border-left: 4px solid var(--accent-rose); }

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ================= AUTHENTICATION & USER BADGE ================= */
.user-auth-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--border-subtle);
    padding: 6px 12px;
    border-radius: var(--radius-md);
}

.auth-username {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-cyan);
    text-transform: capitalize;
}

.btn-logout {
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.3);
    color: var(--accent-rose);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: rgba(244, 63, 94, 0.3);
    border-color: var(--accent-rose);
}

.auth-modal-card {
    max-width: 420px;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(56, 189, 248, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 0 0 20px var(--accent-cyan-glow);
}

.auth-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.auth-logo {
    font-size: 2rem;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-emerald));
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    box-shadow: 0 0 16px var(--accent-cyan-glow);
}

.auth-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.auth-modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-error-msg {
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid var(--accent-rose);
    color: #fecdd3;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 0.84rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-error-msg.hidden {
    display: none;
}

.btn-block {
    width: 100%;
    padding: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 6px;
}

.auth-hints {
    font-size: 0.78rem;
    color: var(--text-dim);
    text-align: center;
    margin-top: 8px;
    line-height: 1.4;
}

/* Tela de entrada: ilustração em tela cheia, com o card no canto inferior direito, sobre a cidade. */
.auth-overlay {
    background: var(--bg-dark);
    backdrop-filter: none;
    padding: 32px clamp(20px, 4vw, 64px);
    overflow-y: auto;
}

.auth-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to left, rgba(9, 13, 22, 0.6), rgba(9, 13, 22, 0) 45%),
        url("assets/tela_entrada.webp") 42% center / cover no-repeat;
}

/* Margens automáticas em vez de align-items: se a tela for baixa, o topo do card continua alcançável. */
.auth-overlay .auth-modal-card {
    position: relative;
    margin: auto 0 0 auto;
    background: rgba(17, 24, 39, 0.82);
    backdrop-filter: blur(14px);
}

/* Celular: a ilustração vira uma faixa no topo, enquadrada nos dois personagens, e o card fica abaixo. */
@media (max-width: 760px) {
    .auth-overlay {
        flex-direction: column;
        justify-content: flex-start;
        padding: 0 16px 24px;
    }

    .auth-overlay::before {
        position: relative;
        inset: auto;
        flex: 0 0 auto;
        align-self: stretch;
        height: 45vh;
        margin: 0 -16px;
        background:
            linear-gradient(to bottom, rgba(9, 13, 22, 0) 60%, var(--bg-dark)),
            url("assets/tela_entrada.webp") 43% center / cover no-repeat;
    }

    .auth-overlay .auth-modal-card {
        margin: -48px auto 0;
    }
}

/* Print CSS para Currículo ATS */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }
    .app-header, .pane-header, .resume-controls-panel, .filters-bar, .toast-container {
        display: none !important;
    }
    .app-container, .resume-workspace, .resume-preview-panel {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
        border: none !important;
        background: #ffffff !important;
    }
    .a4-sheet {
        box-shadow: none !important;
        padding: 0 !important;
        width: 100% !important;
    }
}
