@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@500;600&family=Manrope:wght@400;500;600;700;800&display=swap");
@import "vendor/bootstrap.min-iJdWvDt.css";

:root {
    --background: #fbf8f0;
    --foreground: #244c40;
    --card: #ffffff;
    --primary: #275344;
    --primary-strong: #1d4034;
    --secondary: #9aaf8c;
    --secondary-strong: #275344;
    --muted: #efecdf;
    --muted-foreground: #626b60;
    --border: #dfe1d3;
    --danger: #b84d58;
    --success: #2f8f76;
    --hero-overlay-start: rgba(36, 76, 64, 0.92);
    --hero-overlay-mid: rgba(36, 76, 64, 0.78);
    --hero-overlay-end: rgba(36, 76, 64, 0.42);
    --gradient-hero: linear-gradient(135deg, #275344, #244c40);
    --shadow-soft: 0 2px 15px -3px rgba(36, 76, 64, 0.08);
    --shadow-card: 0 18px 45px -24px rgba(36, 76, 64, 0.2);
    --shadow-elevated: 0 3px 8px rgba(39, 83, 68, 0.12);
    --yellow: #f4cb65;
    --peach: #f1d4c5;
    --sage: #e8eddf;
    --radius-lg: 1.1rem;
    --radius-md: 0.9rem;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--foreground);
    font-family: "Manrope", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

main {
    min-width: 0;
}

.container {
    max-width: 1160px;
}

.flash-stack {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1200;
    display: grid;
    gap: 0.75rem;
    width: min(26rem, calc(100vw - 2rem));
}

.flash-banner {
    padding: 1rem 1.1rem;
    border: 1px solid rgba(223, 225, 211, 0.9);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-card);
    font-size: 0.94rem;
    line-height: 1.5;
}

.flash-banner--success {
    border-color: rgba(47, 143, 118, 0.22);
    color: #1d5f4f;
}

.flash-banner--error {
    border-color: rgba(184, 77, 88, 0.22);
    color: #7a2f38;
}

.toast-container {
    z-index: 1200;
}

.app-toast {
    opacity: 0;
    transform: translateY(-0.5rem);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.app-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.site-header {
    z-index: 1050;
    padding: 0.8rem 0;
    background: rgba(251, 248, 240, 0.96);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(223, 225, 211, 0.85);
}

.site-header--dashboard {
    position: sticky;
    top: 0;
}

.site-navbar {
    min-height: 3.4rem;
}

.brand-mark {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.brand-title {
    display: inline-flex;
    align-items: center;
    line-height: 1.15;
}

.brand-subtitle {
    color: var(--muted-foreground);
    line-height: 1.15;
}

.brand-icon-img {
    width: 2.25rem;
    height: 2.25rem;
    object-fit: contain;
}

.brand-logo-img {
    height: 75px;
    width: 75px;
    object-fit: contain;
    display: block;
}

.site-nav-link {
    padding: 0.625rem 0.85rem;
    border-radius: 0.75rem;
    color: var(--muted-foreground);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.site-nav-link:hover {
    background: rgba(235, 231, 223, 0.75);
    color: var(--foreground);
}

.site-nav-link.is-active {
    background: rgba(39, 83, 68, 0.1);
    color: var(--primary);
}

.site-nav-meta {
    color: var(--muted-foreground);
    font-size: 0.86rem;
    font-weight: 600;
}

.account-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid rgba(223, 225, 211, 0.9);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    padding: 0.25rem 0.45rem 0.25rem 0.3rem;
}

.account-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(39, 83, 68, 0.12);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.account-avatar--sm {
    width: 1.8rem;
    height: 1.8rem;
}

.account-dropdown {
    border-color: rgba(223, 225, 211, 0.95);
    border-radius: 0.9rem;
    padding: 0.35rem;
    box-shadow: var(--shadow-soft);
}

.account-dropdown .dropdown-item {
    border-radius: 0.6rem;
    font-size: 0.9rem;
    padding: 0.5rem 0.7rem;
}

.nav-text-btn {
    color: var(--foreground);
    font-weight: 600;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.9rem;
    font-weight: 600;
    padding-inline: 1.25rem;
}

.btn svg {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
}

.btn-primary {
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary-strong);
    --bs-btn-hover-border-color: var(--primary-strong);
    --bs-btn-active-bg: var(--primary-strong);
    --bs-btn-active-border-color: var(--primary-strong);
    box-shadow: var(--shadow-elevated);
}

.btn-outline-secondary {
    --bs-btn-color: var(--foreground);
    --bs-btn-border-color: rgba(223, 225, 211, 0.95);
    --bs-btn-hover-bg: rgba(235, 231, 223, 0.75);
    --bs-btn-hover-border-color: rgba(223, 225, 211, 0.95);
    --bs-btn-hover-color: var(--foreground);
}

.btn-light-primary {
    --bs-btn-color: #275344;
    --bs-btn-bg: rgba(39, 83, 68, 0.14);
    --bs-btn-border-color: rgba(39, 83, 68, 0.2);
    --bs-btn-hover-color: #1d4034;
    --bs-btn-hover-bg: rgba(39, 83, 68, 0.22);
    --bs-btn-hover-border-color: rgba(39, 83, 68, 0.28);
    --bs-btn-active-color: #1d4034;
    --bs-btn-active-bg: rgba(39, 83, 68, 0.3);
    --bs-btn-active-border-color: rgba(39, 83, 68, 0.32);
}

.btn-light-secondary {
    --bs-btn-color: #2f7f69;
    --bs-btn-bg: rgba(154, 175, 140, 0.15);
    --bs-btn-border-color: rgba(154, 175, 140, 0.24);
    --bs-btn-hover-color: #276958;
    --bs-btn-hover-bg: rgba(154, 175, 140, 0.24);
    --bs-btn-hover-border-color: rgba(154, 175, 140, 0.3);
    --bs-btn-active-color: #245f4f;
    --bs-btn-active-bg: rgba(154, 175, 140, 0.32);
    --bs-btn-active-border-color: rgba(154, 175, 140, 0.34);
}

.btn-light-success {
    --bs-btn-color: #1f6f5b;
    --bs-btn-bg: rgba(47, 143, 118, 0.14);
    --bs-btn-border-color: rgba(47, 143, 118, 0.22);
    --bs-btn-hover-color: #185846;
    --bs-btn-hover-bg: rgba(47, 143, 118, 0.22);
    --bs-btn-hover-border-color: rgba(47, 143, 118, 0.29);
    --bs-btn-active-color: #154c3d;
    --bs-btn-active-bg: rgba(47, 143, 118, 0.3);
    --bs-btn-active-border-color: rgba(47, 143, 118, 0.32);
}

.btn-light-warning {
    --bs-btn-color: #8a6200;
    --bs-btn-bg: rgba(255, 193, 7, 0.2);
    --bs-btn-border-color: rgba(255, 193, 7, 0.28);
    --bs-btn-hover-color: #724f00;
    --bs-btn-hover-bg: rgba(255, 193, 7, 0.28);
    --bs-btn-hover-border-color: rgba(255, 193, 7, 0.34);
    --bs-btn-active-color: #654600;
    --bs-btn-active-bg: rgba(255, 193, 7, 0.36);
    --bs-btn-active-border-color: rgba(255, 193, 7, 0.4);
}

.btn-light-danger {
    --bs-btn-color: #8a3440;
    --bs-btn-bg: rgba(184, 77, 88, 0.14);
    --bs-btn-border-color: rgba(184, 77, 88, 0.22);
    --bs-btn-hover-color: #6f2933;
    --bs-btn-hover-bg: rgba(184, 77, 88, 0.22);
    --bs-btn-hover-border-color: rgba(184, 77, 88, 0.3);
    --bs-btn-active-color: #5f222b;
    --bs-btn-active-bg: rgba(184, 77, 88, 0.3);
    --bs-btn-active-border-color: rgba(184, 77, 88, 0.32);
}

.btn-light-info {
    --bs-btn-color: #1f6d84;
    --bs-btn-bg: rgba(13, 202, 240, 0.17);
    --bs-btn-border-color: rgba(13, 202, 240, 0.25);
    --bs-btn-hover-color: #18576a;
    --bs-btn-hover-bg: rgba(13, 202, 240, 0.25);
    --bs-btn-hover-border-color: rgba(13, 202, 240, 0.32);
    --bs-btn-active-color: #134a5b;
    --bs-btn-active-bg: rgba(13, 202, 240, 0.33);
    --bs-btn-active-border-color: rgba(13, 202, 240, 0.36);
}

.menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.24rem;
    width: 2.8rem;
    height: 2.8rem;
    padding: 0;
    border: 0;
    background: transparent;
}

.menu-toggle span {
    width: 1.35rem;
    height: 2px;
    margin: 0 auto;
    background: var(--foreground);
    border-radius: 999px;
}

.site-mobile-nav {
    display: none;
    padding: 0 0 1rem;
}

.site-mobile-nav.is-open {
    display: block;
}

.site-mobile-link {
    display: block;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    text-decoration: none;
    color: var(--foreground);
    font-weight: 500;
    background: rgba(255, 255, 255, 0.68);
}

.mobile-actions {
    border-top: 1px solid rgba(223, 225, 211, 0.9);
}

.hero-section {
    position: relative;
    padding: 8.5rem 0 5.5rem;
    min-height: 44rem;
    color: #fff;
}

.hero-image,
.hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-image {
    object-fit: cover;
}

.hero-overlay {
    background: linear-gradient(90deg, var(--hero-overlay-start) 0%, var(--hero-overlay-mid) 55%, var(--hero-overlay-end) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 42rem;
}

.hero-badge,
.section-kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.48rem 1rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-badge {
    margin-bottom: 1.5rem;
    color: var(--secondary-strong);
    background: rgba(139, 190, 174, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-content h1,
.section-heading h2,
.cta-panel h2,
.placeholder-card h1,
.auth-card h1,
.dashboard-hero h1 {
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.hero-content h1 {
    font-size: clamp(2.9rem, 7vw, 5rem);
    line-height: 1.06;
    margin-bottom: 1rem;
}

.hero-subtitle {
    margin-bottom: 1rem;
    color: #8fd0bb;
    font-size: clamp(1.35rem, 3vw, 1.9rem);
    font-weight: 700;
}

.hero-description,
.section-heading p,
.step-card p,
.faq-answer p,
.cta-panel p,
.footer-copy,
.placeholder-card p,
.auth-lead,
.auth-list li,
.dashboard-hero p,
.data-card-subtitle,
.empty-state p {
    font-size: 1.06rem;
    line-height: 1.75;
}

.hero-description {
    max-width: 34rem;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 2rem;
}

.hero-actions {
    margin-bottom: 2.2rem;
}

.hero-primary-btn,
.hero-secondary-btn {
    min-height: 3.75rem;
    padding-inline: 2rem;
    font-size: 1rem;
}

.hero-primary-btn,
.cta-primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
}

.hero-primary-btn svg,
.cta-primary-btn svg {
    width: 1rem;
    height: 1rem;
}

.hero-secondary-btn {
    --bs-btn-color: #fff;
    --bs-btn-border-color: rgba(255, 255, 255, 0.22);
    --bs-btn-hover-bg: rgba(255, 255, 255, 0.12);
    --bs-btn-hover-border-color: rgba(255, 255, 255, 0.22);
    --bs-btn-hover-color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.hero-highlights {
    max-width: 48rem;
}

.highlight-item {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
    font-weight: 500;
}

.highlight-item svg {
    width: 1rem;
    height: 1rem;
    color: #8fd0bb;
    flex: 0 0 auto;
}

.section-space {
    padding: 5.5rem 0;
}

.section-heading {
    max-width: 42rem;
    margin-bottom: 4rem;
}

.section-heading--left {
    margin-bottom: 2rem;
}

.section-kicker {
    color: var(--primary);
    background: transparent;
    padding-inline: 0;
    letter-spacing: 0.16em;
}

.section-heading h2 {
    margin-top: 0.85rem;
    margin-bottom: 1rem;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--foreground);
}

.section-heading p {
    margin: 0;
    color: var(--muted-foreground);
}

.step-card {
    height: 100%;
    padding: 0 0.5rem;
}

.step-card--surface {
    padding: 2rem 1.6rem;
    border: 1px solid var(--border);
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-soft);
}

.step-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.25rem;
    border-radius: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(39, 83, 68, 0.1);
    color: var(--primary);
}

.step-icon svg {
    width: 1.75rem;
    height: 1.75rem;
}

.step-number {
    display: inline-block;
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.step-card h3 {
    margin: 0.65rem 0 0.75rem;
    color: var(--foreground);
    font-size: 1.15rem;
    font-weight: 700;
}

.step-card p {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.95rem;
}

.faq-section {
    background: rgba(235, 231, 223, 0.55);
}

.faq-list {
    max-width: 50rem;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: 1.2rem;
    background: var(--card);
    transition: box-shadow 0.2s ease;
    overflow: hidden;
}

.faq-item[open] {
    box-shadow: var(--shadow-card);
}

.faq-item summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.5rem;
    cursor: pointer;
    font-weight: 700;
    color: var(--foreground);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-indicator {
    position: relative;
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
}

.faq-indicator::before,
.faq-indicator::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.9rem;
    height: 2px;
    background: var(--primary);
    border-radius: 999px;
    transform: translate(-50%, -50%);
}

.faq-indicator::after {
    transform: translate(-50%, -50%) rotate(90deg);
    transition: opacity 0.2s ease;
}

.faq-item[open] .faq-indicator::after {
    opacity: 0;
}

.faq-answer {
    padding: 0 1.5rem 1.4rem;
}

.faq-answer p {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 1rem;
}

.cta-panel {
    padding: 4rem 2rem;
    border-radius: var(--radius-lg);
    background: var(--gradient-hero);
    box-shadow: var(--shadow-elevated);
    color: #fff;
}

.cta-panel h2 {
    margin-bottom: 1rem;
    font-size: clamp(2rem, 4vw, 3rem);
}

.cta-panel p {
    max-width: 38rem;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.84);
}

.cta-primary-btn {
    color: var(--foreground);
}

.site-footer {
    padding: 2rem 0 1.25rem;
    background: var(--foreground);
    color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
    margin-bottom: 1.5rem;
}

.footer-copy,
.footer-list li,
.footer-links a,
.footer-bottom p {
    color: rgba(255, 255, 255, 0.72);
}

.footer-brand-logo {
    width: min(16rem, 100%);
    height: auto;
    object-fit: contain;
    display: block;
    filter: brightness(1.05);
}

.footer-title {
    margin-bottom: 1rem;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.footer-list li,
.footer-links li {
    margin-bottom: 0.95rem;
}

.footer-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.6;
}

.footer-list svg {
    width: 1rem;
    height: 1rem;
    margin-top: 0.25rem;
    flex: 0 0 auto;
}

.footer-links a {
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom span {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
}

.auth-page {
    padding: 3rem 0 5rem;
}

.auth-shell--narrow {
    max-width: 40rem;
    margin: 0 auto;
}

.auth-return-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0.95rem 1.1rem;
    border: 1px solid rgba(223, 225, 211, 0.9);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
}

.auth-return-banner p {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.92rem;
    line-height: 1.5;
}

.auth-return-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--primary);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.auth-return-link svg {
    width: 0.95rem;
    height: 0.95rem;
    flex: 0 0 auto;
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 1.5rem;
    align-items: stretch;
}

.auth-aside,
.auth-card,
.dashboard-hero,
.stat-card,
.data-card,
.empty-state {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.auth-aside {
    position: relative;
    overflow: hidden;
    padding: 3rem;
    min-height: 100%;
    background: var(--gradient-hero);
    color: #fff;
}

.auth-aside::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.26), transparent 35%),
        radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.18), transparent 28%);
    pointer-events: none;
}

.auth-aside > * {
    position: relative;
    z-index: 1;
}

.auth-card,
.data-card,
.empty-state {
    padding: 1.75rem;
    border: 1px solid rgba(223, 225, 211, 0.9);
    background: rgba(255, 255, 255, 0.98);
}

.auth-card--solo {
    max-width: 40rem;
    margin: 0 auto;
}

.auth-card h1,
.dashboard-hero h1 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.08;
}

.auth-card-head {
    margin-bottom: 1.75rem;
}

.auth-lead,
.dashboard-hero p,
.data-card-subtitle {
    margin: 1rem 0 0;
    color: var(--muted-foreground);
}

.auth-lead--inverse {
    color: rgba(255, 255, 255, 0.82);
}

.auth-brand-logo {
    width: min(12rem, 68%);
    height: auto;
    object-fit: contain;
    display: block;
    margin-bottom: 1rem;
}

.auth-inline-logo {
    width: min(12rem, 75%);
    height: auto;
    object-fit: contain;
    display: block;
    margin-bottom: 0.95rem;
}

.auth-list {
    display: grid;
    gap: 1rem;
    padding: 0;
    margin: 2rem 0;
    list-style: none;
}

.auth-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin: 0;
}

.auth-list-bullet {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.85rem;
    font-weight: 700;
}

.auth-stat {
    display: inline-flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 9rem;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-stat strong {
    font-size: 1.45rem;
    font-weight: 800;
}

.auth-stat span {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.78);
}

.form-stack {
    display: grid;
    gap: 1.15rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.field-group label,
.form-check-label {
    display: inline-block;
    margin-bottom: 0.55rem;
    color: var(--foreground);
    font-size: 0.92rem;
    font-weight: 700;
}

label.required::after {
    content: " *";
    color: var(--danger);
    font-weight: 800;
}

.field-group .form-control,
.field-group .form-select {
    min-height: 2.85rem;
    border-radius: 0.65rem;
    border-color: rgba(223, 225, 211, 1);
    padding-inline: 1rem;
    font-size: 0.98rem;
    box-shadow: none;
}

.file-upload-field {
    display: grid;
    gap: 0.55rem;
}

.file-upload-control {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 2.85rem;
    border: 1px solid rgba(223, 225, 211, 1);
    border-radius: 1rem;
    padding: 0.4rem 0.6rem;
    background: #fff;
    cursor: pointer;
}

.file-upload-control:focus-within {
    border-color: rgba(39, 83, 68, 0.55);
    box-shadow: 0 0 0 0.22rem rgba(39, 83, 68, 0.12);
}

.file-upload-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    appearance: none;
    padding: 0.55rem 0.9rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(223, 225, 211, 0.95);
    background: rgba(251, 248, 240, 0.9);
    color: var(--foreground);
    font-size: 0.92rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.file-upload-name {
    color: var(--muted-foreground);
    font-size: 0.92rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-left: 0.25rem;
    max-width: min(28rem, 45vw);
}

.file-upload-actions {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.file-upload-action {
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(223, 225, 211, 0.95);
    border-radius: 0.65rem;
    background: #fff;
    color: var(--muted-foreground);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.file-upload-action svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

.file-upload-action:hover {
    border-color: rgba(39, 83, 68, 0.32);
    color: var(--primary);
    background: rgba(39, 83, 68, 0.08);
}

.file-upload-action.is-disabled,
.file-upload-action:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.file-upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
}

.ts-wrapper.form-select,
.ts-wrapper.single {
    min-height: 2.85rem;
}

.ts-wrapper.single .ts-control,
.ts-wrapper.single .ts-control.input-active {
    min-height: 2.85rem;
    border-radius: 0.65rem;
    border-color: rgba(223, 225, 211, 1);
    padding: 0.65rem 0.9rem;
    box-shadow: none;
}

.ts-wrapper.focus .ts-control {
    border-color: rgba(39, 83, 68, 0.55);
    box-shadow: 0 0 0 0.22rem rgba(39, 83, 68, 0.12);
}

.ts-dropdown {
    border-radius: 0.85rem;
    border-color: rgba(223, 225, 211, 1);
    box-shadow: var(--shadow-soft);
}

.password-field {
    position: relative;
}

.password-field .form-control {
    padding-right: 6.25rem;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 0.8rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.7rem;
    border: 0;
    border-radius: 999px;
    background: rgba(39, 83, 68, 0.08);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
}

.password-toggle svg {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
}

.field-group .form-control:focus,
.field-group .form-select:focus {
    border-color: rgba(39, 83, 68, 0.55);
    box-shadow: 0 0 0 0.22rem rgba(39, 83, 68, 0.12);
}

.field-group .invalid-feedback,
.form-error-list {
    display: block;
    margin-top: 0.5rem;
    color: var(--danger);
    font-size: 0.86rem;
}

.field-group {
    position: relative;
}

.field-hint {
    margin-top: -0.35rem;
    color: var(--muted-foreground);
    font-size: 0.88rem;
}

.form-check-panel {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: rgba(251, 248, 240, 0.85);
}

.form-check-panel .form-check-input {
    margin-top: 0.2rem;
}

.form-check-panel .form-check-label {
    margin: 0;
    font-weight: 600;
    color: var(--muted-foreground);
}

.auth-link,
.auth-footer-note a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.auth-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.auth-footer-note {
    margin-top: 1rem;
    color: var(--muted-foreground);
    font-size: 0.94rem;
}

.auth-alert {
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: rgba(184, 77, 88, 0.08);
    color: #7a2f38;
    font-size: 0.93rem;
}


.placeholder-page {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 2rem 0;
}

.placeholder-card {
    max-width: 42rem;
    padding: 3rem;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-card);
}

.placeholder-card .hero-badge {
    margin-bottom: 1rem;
    background: rgba(39, 83, 68, 0.1);
    color: var(--primary);
    border-color: rgba(39, 83, 68, 0.12);
}

.placeholder-card h1 {
    margin-bottom: 1rem;
    color: var(--foreground);
    font-size: clamp(2rem, 4vw, 3rem);
}

.placeholder-card p {
    margin-bottom: 2rem;
    color: var(--muted-foreground);
}

.fade-up {
    animation: fadeUp 0.25s ease both;
}

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

@media (max-width: 991.98px) {
    .hero-section {
        min-height: auto;
        padding: 8rem 0 5rem;
    }

    .step-card {
        padding: 0;
    }

    .auth-layout {
        grid-template-columns: 1fr 1fr;
    }

}

@media (max-width: 767.98px) {
    .site-header {
        padding: 0.65rem 0;
    }

    .footer-brand-logo {
        margin-inline: auto;
    }

    .file-upload-control {
        flex-wrap: wrap;
        align-items: center;
        gap: 0.5rem;
    }

    .file-upload-button {
        flex: 0 0 auto;
    }

    .file-upload-actions {
        margin-left: auto;
        flex: 0 0 auto;
    }

    .file-upload-name {
        order: 3;
        flex: 1 1 100%;
        margin-left: 0;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .hero-section {
        padding: 7.5rem 0 4.5rem;
    }

    .hero-description,
    .section-heading p,
    .cta-panel p,
    .footer-copy,
    .placeholder-card p,
    .auth-lead,
    .auth-list li {
        font-size: 1rem;
    }

    .section-space,
    .auth-page {
        padding: 4.5rem 0;
    }

    .cta-panel,
    .placeholder-card,
    .auth-aside,
    .auth-card {
        padding: 2.4rem 1.4rem;
    }

    .footer-bottom {
        align-items: flex-start;
    }

    .flash-stack {
        left: 1rem;
        right: 1rem;
        width: auto;
    }

    .auth-layout,
    .form-grid,
    .auth-actions {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .auth-return-banner {
        flex-direction: column;
        align-items: flex-start;
    }

}

/* Palette commune à Bootstrap et aux composants de l’application. */
:root {
    --bs-body-font-family: "Manrope", Arial, sans-serif;
    --bs-body-color: var(--foreground);
    --bs-body-bg: var(--background);
    --bs-primary: var(--primary);
    --bs-primary-rgb: 39, 83, 68;
    --bs-link-color: var(--primary);
    --bs-link-hover-color: var(--primary-strong);
    --bs-border-color: var(--border);
    --bs-secondary-color: var(--muted-foreground);
    --bs-success-rgb: 31, 103, 78;
    --bs-danger-rgb: 155, 53, 63;
    --bs-focus-ring-color: rgba(39, 83, 68, 0.25);
}

.kitah-wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.08em;
    line-height: 1.2;
    white-space: nowrap;
}

.kitah-wordmark-icon {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 1.8rem;
    height: 2rem;
    border-radius: 0.55rem;
    background: var(--primary);
    color: var(--background);
    font-size: 1.65rem;
}

.kitah-wordmark-icon > span {
    position: absolute;
    top: -0.6rem;
    right: -0.35rem;
    color: var(--yellow);
    font-size: 1.2rem;
}

.kitah-wordmark-dot { color: #a46c24; }
.site-footer .kitah-wordmark { color: var(--background); }
.site-footer .kitah-wordmark-icon { background: var(--background); color: var(--primary); }
.auth-card-head > .kitah-wordmark { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.auth-aside .kitah-wordmark { color: var(--background); margin-bottom: 1.5rem; }

.handwritten-note {
    display: block;
    margin: 1.25rem 0 0;
    color: var(--primary);
    font-family: "Caveat", cursive;
    font-size: 1.6rem;
    line-height: 1.2;
}

.btn { min-height: 2.5rem; }
.btn-sm { min-height: 2.25rem; padding-inline: 0.8rem; border-radius: 0.6rem; }
.btn-primary { --bs-btn-disabled-bg: var(--primary); --bs-btn-disabled-border-color: var(--primary); }
.btn-outline-primary {
    --bs-btn-color: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary);
    --bs-btn-hover-border-color: var(--primary);
    --bs-btn-active-bg: var(--primary-strong);
    --bs-btn-active-border-color: var(--primary-strong);
}

.form-control, .form-select, .ts-control {
    background-color: #fffefa;
    color: var(--foreground);
    border-color: #9ca58f;
}
.form-control::placeholder { color: #6a7065; opacity: 1; }
.form-control:focus, .form-select:focus {
    color: var(--foreground);
    background-color: #fffefa;
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(39, 83, 68, 0.18);
}
.field-group .form-control, .field-group .form-select,
.ts-wrapper.single .ts-control, .file-upload-control { border-color: #9ca58f; }
.form-check-input { border-color: #848e7b; }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--danger); }
.form-control:disabled, .form-select:disabled { background-color: var(--muted); color: var(--muted-foreground); }
.ts-dropdown .active { background: var(--sage); color: var(--foreground); }
.ts-wrapper .ts-control input { color: var(--foreground); }

.modal-content { border-color: var(--border); border-radius: var(--radius-lg); background: #fffefa; }
.dropdown-menu { --bs-dropdown-link-active-bg: var(--primary); --bs-dropdown-link-hover-bg: var(--sage); }
.table { --bs-table-color: var(--foreground); --bs-table-border-color: var(--border); --bs-table-hover-bg: #f4f3e9; }
.table-theme th { background: #f4f3e9; }
.auth-link:hover, .auth-footer-note a:hover, .empty-state a:hover { text-decoration: underline; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 3px solid #a15e24;
    outline-offset: 3px;
}
.skip-link {
    position: fixed;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 1300;
    padding: 0.75rem 1rem;
    border-radius: 0.6rem;
    background: var(--primary);
    color: #fff;
    transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

@media (max-width: 1199.98px) and (min-width: 768px) {
    .site-navbar { flex-wrap: wrap; gap: 0.75rem; }
    .site-navbar > nav { flex-wrap: wrap; gap: 0.4rem !important; }
}
@media (max-width: 767.98px) {
    .auth-page { padding-block: 1.5rem; }
    .auth-card, .data-card, .empty-state, .dashboard-hero { padding: 1.4rem 1rem; }
    .brand-subtitle { font-size: 0.8rem; margin-left: 0.5rem; }
    .form-control, .form-select, .field-group .form-control, .field-group .form-select,
    .ts-wrapper.single .ts-control, .ts-wrapper .ts-control input { font-size: 1rem; }
    .child-card-head { flex-wrap: wrap; }
    .family-form-actions, .family-child-actions, .enrollment-builder-block-head { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

.footer-grid { --bs-gutter-x: 1.5rem; }
.brand-subtitle { margin-left: 0.75rem; }
.auth-aside .hero-badge { color: var(--yellow); background: rgba(255, 255, 255, 0.08); }
.empty-state--embedded {
    padding: 1rem 0 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.social-auth { display: grid; gap: .75rem; margin-top: 1.5rem; }
.social-auth-button { display: flex; align-items: center; justify-content: center; gap: .8rem; min-height: 48px; background: #fff; color: #1f1f1f; border: 1px solid #747775; font-weight: 500; }
.social-auth-button:hover { background: #f2f2f2; border-color: #1f1f1f; }
.social-auth-button svg { width: 20px; height: 20px; flex-shrink: 0; }
.social-auth-divider { display: flex; align-items: center; gap: .8rem; color: var(--muted-foreground); font-size: .85rem; margin: 1.25rem 0; }
.social-auth-divider::before, .social-auth-divider::after { content: ''; height: 1px; background: var(--border); flex: 1; }
.social-connections { display: grid; gap: 1.25rem; }
.social-connection-row { display: grid; gap: .75rem; padding-block: 1rem; border-bottom: 1px solid var(--border); }
.social-connection-row form { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; }
.social-connection-row .field-group { flex: 1; min-width: 180px; }
