:root{
    --brand:#1f5cff;
    --brand-dark:#0e172f;
    --brand-ink:#081126;
    --brand-soft:#eef4ff;
    --brand-border:#d9e4ff;
    --success:#1ba96b;
    --warning:#f1a90c;
    --danger:#e45252;
    --body:#f4f7fc;
    --card:#ffffff;
    --card-muted:#f8fbff;
    --text:#15213d;
    --text-soft:#6d7895;
    --border:#e5ebf5;
    --shadow:0 20px 45px rgba(17, 33, 79, 0.08);
    --shadow-sm:0 10px 24px rgba(17, 33, 79, 0.06);
    --radius-xl:24px;
    --radius-lg:18px;
    --radius-md:14px;
}

*{
    box-sizing:border-box;
}

body{
    margin:0;
    min-height:100vh;
    background:
        radial-gradient(circle at top left, rgba(31, 92, 255, 0.14), transparent 22%),
        radial-gradient(circle at top right, rgba(13, 58, 165, 0.08), transparent 18%),
        var(--body);
    color:var(--text);
    font-family:'Manrope', 'Segoe UI', sans-serif;
}

a{
    text-decoration:none;
}

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

.sidebar{
    width:288px;
    flex:0 0 288px;
    position:sticky;
    top:0;
    height:100vh;
    padding:28px 18px 20px;
    background:rgba(255,255,255,0.86);
    backdrop-filter:blur(18px);
    border-right:1px solid rgba(217,228,255,0.7);
    overflow-y:auto;
    z-index:1000;
}

.sidebar::-webkit-scrollbar{
    width:6px;
}

.sidebar::-webkit-scrollbar-thumb{
    background:#cfdaef;
    border-radius:999px;
}

.sidebar-brand{
    display:flex;
    align-items:center;
    gap:14px;
    padding:14px 12px 22px;
}

.sidebar-brand-mark{
    width:52px;
    height:52px;
    border-radius:16px;
    display:grid;
    place-items:center;
    background:linear-gradient(150deg, var(--brand-ink), var(--brand));
    color:#fff;
    font-family:'Space Grotesk', sans-serif;
    font-size:1.2rem;
    font-weight:700;
    box-shadow:0 16px 30px rgba(31,92,255,0.28);
}

.sidebar-brand-copy h3{
    margin:0;
    font-family:'Space Grotesk', sans-serif;
    font-size:1.05rem;
    font-weight:700;
    color:var(--brand-ink);
}

.sidebar-brand-copy p{
    margin:4px 0 0;
    color:var(--text-soft);
    font-size:0.84rem;
    line-height:1.5;
}

.sidebar-menu{
    padding:0 6px;
}

.sidebar-title{
    padding:0 10px;
    margin:18px 0 10px;
    color:#92a1bf;
    font-size:0.72rem;
    font-weight:800;
    letter-spacing:0.14em;
    text-transform:uppercase;
}

.sidebar-menu a{
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:8px;
    padding:13px 14px;
    border-radius:16px;
    color:var(--text-soft);
    font-weight:700;
    transition:background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.sidebar-menu a i{
    width:18px;
    color:inherit;
}

.sidebar-menu a:hover{
    background:#f3f7ff;
    color:var(--brand-ink);
    transform:translateX(3px);
}

.sidebar-menu a.active{
    background:linear-gradient(135deg, var(--brand), #3d7fff);
    color:#fff;
    box-shadow:0 14px 24px rgba(31,92,255,0.26);
}

.sidebar-foot{
    margin:22px 12px 0;
    padding:18px;
    border-radius:20px;
    background:linear-gradient(160deg, #0f1833, #163b99);
    color:rgba(255,255,255,0.88);
    box-shadow:var(--shadow);
}

.sidebar-foot-title{
    margin:0 0 6px;
    font-family:'Space Grotesk', sans-serif;
    font-size:0.96rem;
    color:#fff;
}

.sidebar-foot p{
    margin:0;
    font-size:0.84rem;
    line-height:1.6;
}

.main-content{
    flex:1 1 auto;
    min-width:0;
    padding:24px;
}

.topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    margin-bottom:24px;
    padding:20px 24px;
    border-radius:var(--radius-xl);
    background:rgba(255,255,255,0.88);
    border:1px solid rgba(217,228,255,0.75);
    backdrop-filter:blur(18px);
    box-shadow:var(--shadow-sm);
}

.topbar-title{
    font-family:'Space Grotesk', sans-serif;
    font-size:1.6rem;
    font-weight:700;
    color:var(--brand-ink);
}

.topbar-subtitle{
    margin-top:4px;
    color:var(--text-soft);
    font-size:0.95rem;
}

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

.topbar-icon{
    width:42px;
    height:42px;
    border-radius:14px;
    display:grid;
    place-items:center;
    background:#f4f8ff;
    color:var(--brand);
    border:1px solid var(--brand-border);
}

.profile-chip{
    display:flex;
    align-items:center;
    gap:12px;
    padding:6px 8px 6px 6px;
    border-radius:18px;
    background:#fff;
    border:1px solid var(--border);
    box-shadow:var(--shadow-sm);
}

.profile-avatar{
    width:42px;
    height:42px;
    border-radius:14px;
    display:grid;
    place-items:center;
    background:linear-gradient(135deg, var(--brand), #7aa2ff);
    color:#fff;
    font-weight:800;
}

.profile-copy{
    min-width:0;
}

.profile-name{
    margin:0;
    font-size:0.92rem;
    font-weight:800;
    color:var(--brand-ink);
}

.profile-role{
    margin:2px 0 0;
    font-size:0.78rem;
    color:var(--text-soft);
}

.page-content{
    padding:0;
}

.page-header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
    margin-bottom:22px;
}

.page-title{
    margin:0;
    font-family:'Space Grotesk', sans-serif;
    font-size:1.9rem;
    font-weight:700;
    color:var(--brand-ink);
}

.page-subtitle{
    margin-top:6px;
    color:var(--text-soft);
    font-size:0.96rem;
    line-height:1.7;
}

.dashboard-card,
.form-card,
.table-container,
.hrms-card{
    background:var(--card);
    border:1px solid rgba(229,235,245,0.9);
    border-radius:var(--radius-xl);
    box-shadow:var(--shadow-sm);
}

.dashboard-card,
.form-card,
.hrms-card{
    padding:24px;
}

.table-container{
    padding:18px;
}

.card-section-title{
    margin:0 0 14px;
    font-family:'Space Grotesk', sans-serif;
    font-size:1.08rem;
    font-weight:700;
    color:var(--brand-ink);
}

.dashboard-card{
    height:100%;
}

.stat-label{
    margin-bottom:6px;
    color:var(--text-soft);
    font-size:0.85rem;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:0.06em;
}

.stat-value{
    margin:0;
    font-family:'Space Grotesk', sans-serif;
    font-size:2rem;
    font-weight:700;
}

.card-icon{
    width:60px;
    height:60px;
    border-radius:20px;
    display:grid;
    place-items:center;
    font-size:1.3rem;
}

.bg-blue{
    background:#e7efff;
    color:var(--brand);
}

.bg-green{
    background:#e8f8f0;
    color:var(--success);
}

.bg-orange{
    background:#fff4df;
    color:var(--warning);
}

.bg-red{
    background:#ffe7e9;
    color:var(--danger);
}

.form-label{
    margin-bottom:8px;
    font-weight:800;
    color:var(--brand-ink);
}

.form-control,
.form-select{
    min-height:50px;
    border-radius:16px;
    border:1px solid var(--border);
    background:#fbfdff;
    color:var(--text);
    box-shadow:none;
}

textarea.form-control{
    min-height:auto;
    padding-top:14px;
}

.form-control:focus,
.form-select:focus{
    border-color:#9fbcff;
    background:#fff;
    box-shadow:0 0 0 4px rgba(31,92,255,0.12);
}

.btn{
    border-radius:14px;
    padding:11px 18px;
    font-weight:800;
    box-shadow:none;
}

.btn-primary{
    background:linear-gradient(135deg, var(--brand), #3d7fff);
    border:none;
}

.btn-primary:hover{
    background:linear-gradient(135deg, #1b53e5, #3373ff);
}

.btn-success{
    background:var(--success);
    border:none;
}

.btn-warning{
    background:var(--warning);
    border:none;
    color:#fff;
}

.btn-danger{
    background:var(--danger);
    border:none;
}

.btn-light{
    background:#f3f7ff;
    border:1px solid var(--brand-border);
    color:var(--brand-ink);
}

.btn-outline-primary{
    border:1px solid var(--brand-border);
    color:var(--brand);
}

.alert{
    border:none;
    border-radius:18px;
    padding:16px 18px;
}

.badge-pending,
.badge-active,
.badge-inactive{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 14px;
    border-radius:999px;
    font-size:0.78rem;
    font-weight:800;
}

.badge-pending{
    background:#fff4df;
    color:#b67600;
}

.badge-active{
    background:#e7f8f0;
    color:#138255;
}

.badge-inactive{
    background:#ffe8ea;
    color:#b52d46;
}

.table{
    margin-bottom:0;
}

.table thead th{
    padding:16px 14px;
    border:none;
    background:#f7faff;
    color:#74809c;
    font-size:0.77rem;
    font-weight:800;
    letter-spacing:0.05em;
    text-transform:uppercase;
}

.table thead th:first-child{
    border-top-left-radius:16px;
    border-bottom-left-radius:16px;
}

.table thead th:last-child{
    border-top-right-radius:16px;
    border-bottom-right-radius:16px;
}

.table tbody td{
    padding:16px 14px;
    border-color:#eef2f8;
    vertical-align:middle;
}

.table tbody tr:hover{
    background:#fbfdff;
}

.dropdown-menu{
    border:1px solid var(--border);
    border-radius:18px;
    box-shadow:var(--shadow);
    padding:8px;
}

.dropdown-item{
    border-radius:12px;
    padding:10px 12px;
}

.dropdown-item:hover{
    background:#f3f7ff;
}

.metric-strip{
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:16px;
}

.overview-panel{
    display:grid;
    grid-template-columns:1.65fr 1fr;
    gap:18px;
    margin-bottom:22px;
}

.hero-panel{
    position:relative;
    overflow:hidden;
    min-height:280px;
    color:#fff;
    background:linear-gradient(135deg, #081126 0%, #0f2358 45%, #1f5cff 100%);
}

.hero-panel::before{
    content:"";
    position:absolute;
    inset:auto -10% -42% auto;
    width:340px;
    height:340px;
    border-radius:50%;
    background:radial-gradient(circle, rgba(255,255,255,0.2), transparent 66%);
}

.hero-panel::after{
    content:"";
    position:absolute;
    inset:22px auto auto -18px;
    width:120px;
    height:120px;
    border-radius:24px;
    border:1px solid rgba(255,255,255,0.14);
    transform:rotate(18deg);
}

.hero-panel .dashboard-card{
    background:transparent;
    border:none;
    box-shadow:none;
    padding:0;
}

.hero-label{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 14px;
    border-radius:999px;
    background:rgba(255,255,255,0.12);
    font-size:0.78rem;
    font-weight:800;
    letter-spacing:0.05em;
    text-transform:uppercase;
}

.hero-title{
    margin:18px 0 10px;
    font-family:'Space Grotesk', sans-serif;
    font-size:2.25rem;
    line-height:1.15;
}

.hero-copy{
    max-width:540px;
    margin:0;
    color:rgba(255,255,255,0.8);
    line-height:1.75;
}

.hero-footer{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:26px;
}

.hero-pill{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:10px 14px;
    border-radius:16px;
    background:rgba(255,255,255,0.12);
    color:#fff;
    font-size:0.85rem;
    font-weight:700;
}

.status-panel{
    background:linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.progress-track{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(100px, 1fr));
    gap:14px;
}

.progress-step{
    position:relative;
    text-align:center;
}

.progress-step::after{
    content:"";
    position:absolute;
    top:18px;
    left:calc(50% + 22px);
    width:calc(100% - 44px);
    height:2px;
    background:#deebff;
}

.progress-step:last-child::after{
    display:none;
}

.progress-step-dot{
    width:38px;
    height:38px;
    margin:0 auto 10px;
    border-radius:50%;
    display:grid;
    place-items:center;
    border:2px solid #d8e4ff;
    background:#fff;
    color:#9aa6c2;
    font-size:0.9rem;
}

.progress-step.is-complete .progress-step-dot{
    background:var(--success);
    border-color:var(--success);
    color:#fff;
}

.progress-step.is-current .progress-step-dot{
    background:var(--brand);
    border-color:var(--brand);
    color:#fff;
    box-shadow:0 0 0 8px rgba(31,92,255,0.12);
}

.progress-step-label{
    display:block;
    font-size:0.85rem;
    font-weight:800;
    color:var(--brand-ink);
}

.progress-step-state{
    display:block;
    margin-top:4px;
    color:var(--text-soft);
    font-size:0.76rem;
}

.split-layout{
    display:grid;
    grid-template-columns:1.1fr 1.45fr;
    gap:18px;
}

.visual-panel{
    position:relative;
    overflow:hidden;
    min-height:100%;
    border-radius:var(--radius-xl);
    background:linear-gradient(145deg, #081126 0%, #0e214d 45%, #1f5cff 100%);
    color:#fff;
    padding:28px;
}

.visual-panel::before{
    content:"";
    position:absolute;
    inset:auto -120px -120px auto;
    width:280px;
    height:280px;
    border-radius:50%;
    background:radial-gradient(circle, rgba(255,255,255,0.32), transparent 65%);
}

.visual-panel::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(180deg, transparent 30%, rgba(9,17,38,0.18) 100%);
}

.visual-panel > *{
    position:relative;
    z-index:1;
}

.visual-kicker{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 14px;
    border-radius:999px;
    background:rgba(255,255,255,0.14);
    font-size:0.78rem;
    font-weight:800;
    text-transform:uppercase;
}

.visual-title{
    margin:22px 0 12px;
    font-family:'Space Grotesk', sans-serif;
    font-size:2.1rem;
    line-height:1.12;
}

.visual-copy{
    margin:0;
    max-width:420px;
    color:rgba(255,255,255,0.8);
    line-height:1.75;
}

.feature-list{
    display:grid;
    gap:12px;
    margin-top:28px;
}

.feature-list-item{
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px 14px;
    border-radius:16px;
    background:rgba(255,255,255,0.1);
}

.feature-list-item i{
    width:38px;
    height:38px;
    display:grid;
    place-items:center;
    border-radius:12px;
    background:rgba(255,255,255,0.12);
}

.module-blueprint-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:16px;
}

.module-blueprint-grid .card{
    border:1px solid var(--border);
    border-radius:18px;
}

.module-blueprint-card{
    cursor:pointer;
    transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.module-blueprint-card:hover{
    transform:translateY(-2px);
    box-shadow:var(--shadow-sm);
}

.checklist-grid{
    display:grid;
    gap:12px;
}

.checklist-item{
    display:flex;
    align-items:flex-start;
    gap:12px;
    padding:14px 16px;
    border-radius:18px;
    background:#f9fbff;
    border:1px solid var(--border);
}

.checklist-item input{
    margin-top:4px;
}

.upload-card{
    padding:18px;
    border-radius:20px;
    border:1px dashed #c7d8ff;
    background:#fbfdff;
}

.upload-card .form-control{
    background:#fff;
}

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

.mini-card{
    padding:20px;
    border-radius:20px;
    background:var(--card-muted);
    border:1px solid var(--border);
}

.timeline-list{
    display:grid;
    gap:14px;
}

.timeline-item{
    display:flex;
    align-items:flex-start;
    gap:12px;
}

.timeline-dot{
    width:14px;
    height:14px;
    margin-top:6px;
    border-radius:50%;
    background:#d8e4ff;
    box-shadow:0 0 0 5px #eef4ff;
}

.timeline-item.is-complete .timeline-dot{
    background:var(--success);
    box-shadow:0 0 0 5px rgba(27,169,107,0.12);
}

.timeline-item.is-current .timeline-dot{
    background:var(--brand);
    box-shadow:0 0 0 5px rgba(31,92,255,0.12);
}

.empty-state{
    padding:28px;
    border-radius:22px;
    text-align:center;
    background:#fbfdff;
    border:1px dashed #cfdaef;
    color:var(--text-soft);
}

@media (max-width:1200px){
    .overview-panel,
    .split-layout{
        grid-template-columns:1fr;
    }

    .metric-strip{
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }
}

@media (max-width:991px){
    .app-shell{
        display:block;
    }

    .sidebar{
        position:relative;
        width:100%;
        height:auto;
        border-right:none;
        border-bottom:1px solid rgba(217,228,255,0.7);
    }

    .main-content{
        padding:16px;
    }

    .topbar,
    .page-header{
        flex-direction:column;
        align-items:flex-start;
    }

    .topbar-actions{
        width:100%;
        justify-content:space-between;
    }

    .metric-strip,
    .quick-grid,
    .module-blueprint-grid{
        grid-template-columns:1fr;
    }

    .progress-track{
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }

    .progress-step::after{
        display:none;
    }
}

@media (max-width:576px){
    .dashboard-card,
    .form-card,
    .hrms-card,
    .table-container{
        padding:18px;
    }

    .page-title{
        font-size:1.5rem;
    }

    .hero-title,
    .visual-title{
        font-size:1.7rem;
    }

    .metric-strip{
        grid-template-columns:1fr;
    }
}

.public-page{
    min-height:100vh;
    padding:28px;
}

.public-shell{
    max-width:1380px;
    margin:0 auto;
}

.public-nav{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-bottom:22px;
    padding:18px 22px;
    border-radius:26px;
    background:rgba(255,255,255,0.86);
    border:1px solid rgba(221,230,245,0.9);
    backdrop-filter:blur(16px);
    box-shadow:0 18px 36px rgba(15, 35, 88, 0.06);
}

.public-brand{
    display:flex;
    align-items:center;
    gap:14px;
}

.public-brand-mark{
    width:52px;
    height:52px;
    border-radius:16px;
    display:grid;
    place-items:center;
    background:linear-gradient(140deg, var(--brand-dark), var(--brand));
    color:#fff;
    font-family:'Space Grotesk', sans-serif;
    font-weight:700;
}

.public-brand-copy{
    line-height:1.15;
}

.public-brand-copy strong{
    display:block;
    font-family:'Space Grotesk', sans-serif;
    font-size:1rem;
}

.public-brand-copy span{
    display:block;
    margin-top:4px;
    color:var(--text-soft);
    font-size:0.8rem;
}

.brand-copy-on-dark strong,
.brand-copy-on-dark span{
    color:#fff;
}

.brand-copy-on-dark span{
    opacity:.72;
}

.public-nav-links{
    display:flex;
    align-items:center;
    gap:22px;
    color:var(--text-soft);
    font-weight:700;
}

.public-nav-links a:hover{
    color:var(--brand);
}

.public-nav-actions{
    display:flex;
    align-items:center;
    gap:12px;
}

.public-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    padding:13px 20px;
    border:none;
    border-radius:16px;
    font-weight:800;
    transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.public-btn:hover{
    transform:translateY(-1px);
}

.public-btn-primary{
    background:linear-gradient(135deg, var(--brand), #3d7fff);
    color:#fff;
    box-shadow:0 16px 28px rgba(31,92,255,0.18);
}

.public-btn-secondary{
    background:#fff;
    color:var(--text);
    border:1px solid var(--brand-border);
}

.landing-hero{
    position:relative;
    overflow:hidden;
    display:grid;
    grid-template-columns:1.1fr 0.9fr;
    gap:24px;
    padding:38px;
    border-radius:34px;
    background:linear-gradient(135deg, #071024 0%, #0b1838 46%, #1848c9 100%);
    color:#fff;
    box-shadow:0 28px 60px rgba(11, 24, 56, 0.18);
}

.landing-hero::before{
    content:"";
    position:absolute;
    inset:auto -140px -200px auto;
    width:420px;
    height:420px;
    border-radius:50%;
    background:radial-gradient(circle, rgba(255,255,255,0.28), transparent 68%);
}

.landing-hero::after{
    content:"";
    position:absolute;
    inset:auto 0 0 0;
    height:110px;
    background:linear-gradient(120deg, transparent 0%, transparent 24%, rgba(255,255,255,0.06) 24%, rgba(255,255,255,0.06) 30%, transparent 30%);
}

.landing-copy,
.landing-visual{
    position:relative;
    z-index:1;
}

.eyebrow{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:10px 16px;
    border-radius:999px;
    background:rgba(255,255,255,0.1);
    font-size:0.78rem;
    font-weight:800;
    letter-spacing:0.08em;
    text-transform:uppercase;
}

.eyebrow.is-light{
    background:#eef4ff;
    color:var(--brand);
}

.landing-title{
    margin:22px 0 16px;
    font-family:'Space Grotesk', sans-serif;
    font-size:clamp(2.6rem, 5vw, 4.8rem);
    line-height:1;
}

.landing-title span{
    color:#7cb1ff;
}

.landing-text{
    max-width:560px;
    color:rgba(255,255,255,0.8);
    font-size:1.05rem;
    line-height:1.8;
}

.landing-actions{
    display:flex;
    flex-wrap:wrap;
    gap:14px;
    margin-top:28px;
}

.landing-stats{
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:14px;
    margin-top:36px;
}

.landing-stat{
    padding:16px 14px;
    border-radius:18px;
    background:rgba(255,255,255,0.08);
    border:1px solid rgba(255,255,255,0.1);
}

.landing-stat strong{
    display:block;
    margin-top:10px;
    font-size:0.92rem;
}

.landing-card-stack{
    position:relative;
    min-height:100%;
}

.landing-portrait{
    position:relative;
    z-index:2;
    margin:24px auto 0;
    width:min(100%, 420px);
    padding:24px;
    border-radius:28px;
    background:linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.06));
    border:1px solid rgba(255,255,255,0.16);
    backdrop-filter:blur(14px);
}

.landing-portrait-figure{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
    align-items:end;
}

.landing-person{
    height:360px;
    border-radius:26px 26px 10px 10px;
    background:linear-gradient(180deg, rgba(255,255,255,0.98), rgba(211,225,255,0.82));
    position:relative;
    overflow:hidden;
}

.landing-person::before{
    content:"";
    position:absolute;
    inset:24px 24px auto;
    height:120px;
    border-radius:999px 999px 44px 44px;
    background:linear-gradient(180deg, #182033, #2d3446);
}

.landing-person::after{
    content:"";
    position:absolute;
    inset:128px 20px 0;
    border-radius:28px 28px 10px 10px;
    background:linear-gradient(180deg, #ffffff, #dfe6f4);
}

.landing-person.is-dark::before{
    background:linear-gradient(180deg, #111827, #2d3748);
}

.landing-person.is-dark::after{
    background:linear-gradient(180deg, #1b2947, #294ca0);
}

.landing-bubble{
    position:absolute;
    border-radius:22px;
    background:rgba(255,255,255,0.12);
    border:1px solid rgba(255,255,255,0.14);
    backdrop-filter:blur(12px);
}

.landing-bubble.is-one{
    top:12px;
    right:12px;
    width:110px;
    height:110px;
}

.landing-bubble.is-two{
    bottom:12px;
    left:-10px;
    width:140px;
    height:140px;
}

.public-card{
    background:rgba(255,255,255,0.9);
    border:1px solid rgba(221,230,245,0.9);
    border-radius:30px;
    box-shadow:0 22px 42px rgba(15,35,88,0.08);
}

.public-card-grid{
    display:grid;
    grid-template-columns:1.2fr .8fr;
    gap:22px;
    margin-top:24px;
    padding:24px;
}

.public-section{
    padding:24px;
    border-radius:24px;
    background:#fff;
    border:1px solid var(--brand-border);
}

.public-section h2{
    margin:0 0 8px;
    font-family:'Space Grotesk', sans-serif;
    font-size:1.35rem;
}

.public-section p{
    margin:0;
    color:var(--text-soft);
    line-height:1.7;
}

.public-list{
    display:grid;
    gap:14px;
    margin-top:18px;
}

.public-list-item{
    display:flex;
    gap:14px;
    align-items:flex-start;
    padding:14px 16px;
    border-radius:18px;
    background:#f8fbff;
}

.public-list-item i{
    width:38px;
    height:38px;
    display:grid;
    place-items:center;
    border-radius:12px;
    background:#e8efff;
    color:var(--brand);
}

.auth-page{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:28px;
}

.auth-shell{
    display:grid;
    grid-template-columns:0.95fr 1.05fr;
    width:min(1120px, 100%);
    background:rgba(255,255,255,0.9);
    border:1px solid rgba(221,230,245,0.9);
    border-radius:34px;
    overflow:hidden;
    box-shadow:0 30px 55px rgba(15, 35, 88, 0.1);
}

.auth-visual{
    position:relative;
    overflow:hidden;
    padding:36px;
    background:linear-gradient(145deg, #071024 0%, #0d1b3f 42%, #1f5cff 100%);
    color:#fff;
}

.auth-visual::before{
    content:"";
    position:absolute;
    inset:auto -90px -120px auto;
    width:280px;
    height:280px;
    border-radius:50%;
    background:radial-gradient(circle, rgba(255,255,255,0.25), transparent 68%);
}

.auth-visual-content{
    position:relative;
    z-index:1;
    max-width:420px;
}

.auth-eyebrow{
    margin-top:40px;
}

.auth-title{
    margin:22px 0 12px;
    font-family:'Space Grotesk', sans-serif;
    font-size:2.3rem;
    line-height:1.1;
}

.auth-copy{
    color:rgba(255,255,255,0.8);
    line-height:1.8;
}

.auth-feature-grid{
    display:grid;
    gap:12px;
    margin-top:28px;
}

.auth-feature{
    display:flex;
    gap:12px;
    align-items:flex-start;
    padding:14px 16px;
    border-radius:18px;
    background:rgba(255,255,255,0.1);
}

.auth-feature i{
    width:38px;
    height:38px;
    display:grid;
    place-items:center;
    border-radius:12px;
    background:rgba(255,255,255,0.12);
}

.auth-form-wrap{
    padding:36px;
    background:#fff;
}

.auth-form-header h1{
    margin:14px 0 8px;
    font-family:'Space Grotesk', sans-serif;
    font-size:2rem;
}

.auth-form-header p{
    margin:0;
    color:var(--text-soft);
    line-height:1.7;
}

.auth-form{
    margin-top:28px;
}

.auth-grid{
    display:grid;
    gap:16px;
}

.auth-grid.two{
    grid-template-columns:repeat(2, minmax(0, 1fr));
}

.auth-label{
    display:block;
    margin-bottom:8px;
    font-size:0.9rem;
    font-weight:800;
    color:var(--text);
}

.auth-input{
    width:100%;
    min-height:52px;
    padding:14px 16px;
    border:1px solid var(--brand-border);
    border-radius:16px;
    background:#fbfdff;
    color:var(--text);
    outline:none;
    transition:border-color .2s ease, box-shadow .2s ease;
}

.auth-input:focus{
    border-color:#a7c0ff;
    box-shadow:0 0 0 4px rgba(31,92,255,0.12);
}

.auth-check{
    display:flex;
    align-items:flex-start;
    gap:10px;
    color:var(--text-soft);
    font-size:0.92rem;
    line-height:1.6;
}

.auth-meta{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-top:16px;
}

.auth-link{
    color:var(--brand);
    font-weight:800;
}

.auth-submit{
    width:100%;
    margin-top:18px;
    cursor:pointer;
}

.auth-switch{
    margin-top:22px;
    color:var(--text-soft);
    text-align:center;
}

.flash-message{
    margin-top:16px;
    padding:14px 16px;
    border-radius:18px;
    border:1px solid;
    font-size:.92rem;
}

.flash-success{
    background:#eaf8f1;
    border-color:#b7e5cb;
    color:#12724a;
}

.flash-error{
    background:#fff0f1;
    border-color:#ffc7cf;
    color:#b53448;
}

.flash-list{
    margin:0;
    padding-left:18px;
}

@media (max-width:1100px){
    .landing-hero,
    .auth-shell,
    .public-card-grid{
        grid-template-columns:1fr;
    }
}

@media (max-width:780px){
    .public-page,
    .auth-page{
        padding:16px;
    }

    .public-nav{
        flex-direction:column;
        align-items:flex-start;
    }

    .public-nav-links,
    .public-nav-actions{
        width:100%;
        flex-wrap:wrap;
    }

    .landing-stats,
    .auth-grid.two{
        grid-template-columns:1fr;
    }

    .landing-hero{
        padding:28px 22px;
    }

    .auth-form-wrap,
    .auth-visual{
        padding:28px 22px;
    }
}
