html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800&display=swap");

:root {
    --white-color: #fff;
    --red-color: red;
    --main-color: #F1F7F3;
    --secondary-color: #2A7247;
    --third-color: #0F4D2B;
    --blue-color: #0075ff;
    --orange-color: #f59e0b;
    --green-color: #22c55e;
    --eee-color: #eee;
    --ccc-color: #ccc;
    --main-margin: 30px;
    --secondary-margin: 20px;
    --third-margin: 15px;
    --fourth-margin: 10px;
    --fifth-margin: 6px;
    --main-padding: 30px;
    --secondary-padding: 20px;
    --third-padding: 15px;
    --fourth-padding: 10px;
    --fifth-padding: 6px;
    --main-radius: 50px;
    --first-radius: 10px;
    --secondary-radius: 6px;
}

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

body,
input {
    font-family: "Poppins", sans-serif;
}

.container {
    position: relative;
    width: 100%;
    background-color: var(--white-color);
    min-height: 100vh;
    overflow: hidden;
}

.forms-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.signin-signup {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    left: 75%;
    width: 50%;
    transition: 1s 0.7s ease-in-out;
    display: grid;
    grid-template-columns: 1fr;
    z-index: 5;
}

form {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0rem 5rem;
    transition: all 0.2s 0.7s;
    overflow: hidden;
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

    form.sign-up-form {
        opacity: 0;
        z-index: 1;
    }

    form.sign-in-form {
        z-index: 2;
    }

.title {
    font-size: 2.2rem;
    color: var(--third-color);
    margin-bottom: var(--fourth-margin);
    font-weight: 600;
}

.input-field {
    max-width: 380px;
    width: 100%;
    background-color: var(--main-color);
    margin: var(--fourth-margin) 0;
    height: 55px;
    border-radius: var(--main-radius);
    display: grid;
    grid-template-columns: 15% 85%;
    padding: 0 0.4rem;
    position: relative;
    border: 1px solid transparent;
    transition: 0.3s;
}

    .input-field:focus-within {
        border-color: var(--secondary-color);
    }

    .input-field i {
        text-align: center;
        line-height: 55px;
        color: var(--secondary-color);
        transition: 0.5s;
        font-size: 1.1rem;
    }

    .input-field input {
        background: none;
        outline: none;
        border: none;
        line-height: 1;
        font-weight: 600;
        font-size: 1.1rem;
        color: var(--third-color);
    }

        .input-field input::placeholder {
            color: var(--ccc-color);
            font-weight: 500;
        }

.social-text {
    padding: 0.7rem 0;
    font-size: 1rem;
    color: var(--third-color);
}

.social-media {
    display: flex;
    justify-content: center;
}

.social-icon {
    height: 46px;
    width: 46px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0.45rem;
    color: var(--third-color);
    border-radius: 50%;
    border: 1px solid var(--third-color);
    text-decoration: none;
    font-size: 1.1rem;
    transition: 0.3s;
}

    .social-icon:hover {
        color: var(--secondary-color);
        border-color: var(--secondary-color);
    }

.btn {
    width: 150px;
    background-color: var(--secondary-color);
    border: none;
    outline: none;
    height: 49px;
    border-radius: var(--main-radius);
    color: var(--white-color);
    text-transform: uppercase;
    font-weight: 600;
    margin: var(--fourth-margin) 0;
    cursor: pointer;
    transition: 0.5s;
}

    .btn:hover {
        background-color: var(--third-color);
    }

.panels-container {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.container:before {
    content: "";
    position: absolute;
    height: 2000px;
    width: 2000px;
    top: -10%;
    right: 48%;
    transform: translateY(-50%);
    background-image: linear-gradient(-45deg, var(--third-color) 0%, var(--secondary-color) 100%);
    transition: 1.8s ease-in-out;
    border-radius: 50%;
    z-index: 6;
}

.image {
    width: 100%;
    transition: transform 1.1s ease-in-out;
    transition-delay: 0.4s;
}

.panel {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-around;
    text-align: center;
    z-index: 6;
}

.left-panel {
    pointer-events: all;
    padding: 3rem 17% 2rem 12%;
}

.right-panel {
    pointer-events: none;
    padding: 3rem 12% 2rem 17%;
}

.panel .content {
    color: var(--white-color);
    transition: transform 0.9s ease-in-out;
    transition-delay: 0.6s;
}

.panel h3 {
    font-weight: 600;
    line-height: 1;
    font-size: 1.5rem;
}

.panel p {
    font-size: 0.95rem;
    padding: 0.7rem 0;
}

.btn.transparent {
    margin: 0;
    background: none;
    border: 2px solid var(--white-color);
    width: 130px;
    height: 41px;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--white-color);
}

    .btn.transparent:hover {
        background-color: rgba(255, 255, 255, 0.15);
    }

.right-panel .image,
.right-panel .content {
    transform: translateX(800px);
}

/* ANIMATION */

.container.sign-up-mode:before {
    transform: translate(100%, -50%);
    right: 52%;
}

.container.sign-up-mode .left-panel .image,
.container.sign-up-mode .left-panel .content {
    transform: translateX(-800px);
}

.container.sign-up-mode .signin-signup {
    left: 25%;
}

.container.sign-up-mode form.sign-up-form {
    opacity: 1;
    z-index: 2;
}

.container.sign-up-mode form.sign-in-form {
    opacity: 0;
    z-index: 1;
}

.container.sign-up-mode .right-panel .image,
.container.sign-up-mode .right-panel .content {
    transform: translateX(0%);
}

.container.sign-up-mode .left-panel {
    pointer-events: none;
}

.container.sign-up-mode .right-panel {
    pointer-events: all;
}

@media (max-width: 870px) {
    .container {
        min-height: 800px;
        height: 100vh;
    }

    .signin-signup {
        width: 100%;
        top: 95%;
        transform: translate(-50%, -100%);
        transition: 1s 0.8s ease-in-out;
    }

    .signin-signup,
    .container.sign-up-mode .signin-signup {
        left: 50%;
    }

    .panels-container {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 2fr 1fr;
    }

    .panel {
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        padding: 2.5rem 8%;
        grid-column: 1 / 2;
    }

    .right-panel {
        grid-row: 3 / 4;
    }

    .left-panel {
        grid-row: 1 / 2;
    }

    .image {
        width: 200px;
        transition: transform 0.9s ease-in-out;
        transition-delay: 0.6s;
    }

    .panel .content {
        padding-right: 15%;
        transition: transform 0.9s ease-in-out;
        transition-delay: 0.8s;
    }

    .panel h3 {
        font-size: 1.2rem;
    }

    .panel p {
        font-size: 0.7rem;
        padding: 0.5rem 0;
    }

    .btn.transparent {
        width: 110px;
        height: 35px;
        font-size: 0.7rem;
    }

    .container:before {
        width: 1500px;
        height: 1500px;
        transform: translateX(-50%);
        left: 30%;
        bottom: 68%;
        right: initial;
        top: initial;
        transition: 2s ease-in-out;
    }

    .container.sign-up-mode:before {
        transform: translate(-50%, 100%);
        bottom: 32%;
        right: initial;
    }

    .container.sign-up-mode .left-panel .image,
    .container.sign-up-mode .left-panel .content {
        transform: translateY(-300px);
    }

    .container.sign-up-mode .right-panel .image,
    .container.sign-up-mode .right-panel .content {
        transform: translateY(0px);
    }

    .right-panel .image,
    .right-panel .content {
        transform: translateY(300px);
    }

    .container.sign-up-mode .signin-signup {
        top: 5%;
        transform: translate(-50%, 0);
    }
}

@media (max-width: 570px) {
    form {
        padding: 0 1.5rem;
    }

    .image {
        display: none;
    }

    .panel .content {
        padding: 0.5rem 1rem;
    }

    .container {
        padding: 1.5rem;
    }

        .container:before {
            bottom: 72%;
            left: 50%;
        }

        .container.sign-up-mode:before {
            bottom: 28%;
            left: 50%;
        }
}

/* ======================================================================
   SAC LANDING PAGE
   Moved out of the .cshtml <style> block and organized by section.
   Uses its own font stack (Space Grotesk / Inter / IBM Plex Mono) and
   its own color tokens below, scoped with the .sac-* / existing class
   names used on the landing markup — this block does not touch the
   auth-panel styles above.
   ====================================================================== */

.sac-page {
    --ink: #132018;
    --ink-soft: #516059;
    --bg: #F5FBF6;
    --panel: #FFFFFF;
    --violet: #22B573;
    --violet-deep: #0E8F57;
    --aqua: #17D9A3;
    --coral: #FF9457;
    --line: rgba(19, 32, 24, 0.10);
    --shadow: 0 20px 40px -20px rgba(14, 143, 87, 0.35);
    --radius: 18px;
    background: var(--bg);
    color: var(--ink);
    font-family: "Inter", sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

    .sac-page * {
        box-sizing: border-box;
    }

    .sac-page h1,
    .sac-page h2,
    .sac-page h3 {
        font-family: "Space Grotesk", sans-serif;
        letter-spacing: -0.02em;
    }

    .sac-page .mono {
        font-family: "IBM Plex Mono", monospace;
        letter-spacing: 0.02em;
        text-transform: uppercase;
    }

    .sac-page a {
        text-decoration: none;
        color: inherit;
    }

    .sac-page html {
        scroll-behavior: smooth;
    }

    .sac-page .wrap {
        max-width: 1180px;
        margin: 0 auto;
        padding: 0 32px;
    }

    /* ---------- NAV ---------- */
    .sac-page nav {
        position: sticky;
        top: 0;
        z-index: 50;
        background: rgba(245, 251, 246, 0.85);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--line);
    }

    .sac-page .nav-inner {
        max-width: 1180px;
        margin: 0 auto;
        padding: 18px 32px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }

    .sac-page .logo {
        display: flex;
        align-items: center;
        gap: 10px;
        font-weight: 700;
        font-size: 20px;
        flex-shrink: 0;
    }

        .sac-page .logo img {
            width: 100px;
            height: 70px;
            object-fit: contain;
            display: block;
            flex-shrink: 0;
        }

    .sac-page .nav-links {
        display: flex;
        gap: 32px;
        font-size: 15px;
        font-weight: 500;
        color: var(--ink-soft);
    }

        .sac-page .nav-links a:hover {
            color: var(--ink);
        }

    .sac-page .nav-actions {
        display: flex;
        gap: 12px;
        align-items: center;
        flex-shrink: 0;
    }

    .sac-page .g-btn {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 10px 18px;
        border-radius: 999px;
        font-weight: 600;
        font-size: 14.5px;
        border: 1.5px solid var(--line);
        background: var(--panel);
        cursor: pointer;
        transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
        white-space: nowrap;
    }

        .sac-page .g-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 24px -12px rgba(19, 32, 24, 0.25);
            border-color: transparent;
        }

        .sac-page .g-btn.filled {
            background: linear-gradient(120deg, var(--violet), var(--violet-deep));
            color: #fff;
            border: none;
        }

            .sac-page .g-btn.filled:hover {
                box-shadow: 0 14px 30px -12px rgba(14, 143, 87, 0.55);
            }

    .sac-page .g-icon {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

    /* ---------- HERO ---------- */
    .sac-page .hero {
        padding: 88px 0 60px;
        position: relative;
    }

    .sac-page .hero-grid {
        display: grid;
        grid-template-columns: 1.05fr 1fr;
        gap: 56px;
        align-items: center;
    }

    .sac-page .eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 12.5px;
        color: var(--violet-deep);
        font-weight: 600;
        background: rgba(34, 181, 115, 0.10);
        padding: 7px 14px;
        border-radius: 999px;
        margin-bottom: 22px;
    }

        .sac-page .eyebrow .dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--aqua);
        }

    .sac-page .hero h1 {
        font-size: 56px;
        line-height: 1.03;
        font-weight: 700;
        letter-spacing: -0.03em;
    }

        .sac-page .hero h1 .accent {
            background: linear-gradient(100deg, var(--violet), var(--aqua) 80%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

    .sac-page .hero p.lead {
        margin-top: 22px;
        font-size: 18px;
        line-height: 1.6;
        color: var(--ink-soft);
        max-width: 480px;
    }

    .sac-page .hero-cta {
        display: flex;
        gap: 14px;
        margin-top: 34px;
        align-items: center;
        flex-wrap: wrap;
    }

    .sac-page .g-btn.large {
        padding: 15px 26px;
        font-size: 16px;
        border-radius: 14px;
    }

    .sac-page .cta-note {
        font-size: 13px;
        color: var(--ink-soft);
        margin-top: 14px;
    }

    /* ---------- HERO FLOATING PHOTOS ----------
   Replaces the old mock "board/chip" canvas illustration with real
   floating photo cards. Each .photo-float wraps an <img>; sizing,
   rotation and stacking are handled per-position class (p1/p2/p3).
   .chip labels remain as small floating tags on top. */
    .sac-page .canvas-stage {
        position: relative;
        height: 460px;
    }

    .sac-page .photo-float {
        position: absolute;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: var(--shadow);
        border: 6px solid var(--panel);
        background: var(--panel);
    }

        .sac-page .photo-float img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .sac-page .photo-float.p1 {
            width: 260px;
            height: 200px;
            top: 10px;
            left: 10px;
            transform: rotate(-7deg);
            z-index: 2;
        }

        .sac-page .photo-float.p2 {
            width: 300px;
            height: 220px;
            top: 130px;
            left: 170px;
            transform: rotate(5deg);
            z-index: 3;
        }

        .sac-page .photo-float.p3 {
            width: 220px;
            height: 170px;
            top: 300px;
            left: 0;
            transform: rotate(-4deg);
            z-index: 1;
            opacity: 0.95;
        }

    .sac-page .chip {
        position: absolute;
        display: flex;
        align-items: center;
        gap: 8px;
        background: var(--panel);
        border: 1px solid var(--line);
        border-radius: 999px;
        padding: 9px 14px;
        font-size: 13px;
        font-weight: 600;
        box-shadow: 0 12px 24px -16px rgba(19, 32, 24, 0.3);
        z-index: 4;
    }

        .sac-page .chip .swatch {
            width: 10px;
            height: 10px;
            border-radius: 3px;
        }

        .sac-page .chip.c1 {
            top: 0;
            right: 30px;
        }

            .sac-page .chip.c1 .swatch {
                background: var(--aqua);
            }

        .sac-page .chip.c2 {
            bottom: 70px;
            right: 0;
        }

            .sac-page .chip.c2 .swatch {
                background: var(--coral);
                border-radius: 50%;
            }

        .sac-page .chip.c3 {
            bottom: 10px;
            left: 40px;
        }

            .sac-page .chip.c3 .swatch {
                background: var(--violet);
            }

@keyframes sac-floaty {
    0%, 100% {
        transform: translateY(0) rotate(var(--r, 0deg));
    }

    50% {
        transform: translateY(-10px) rotate(var(--r, 0deg));
    }
}

.sac-page .photo-float.p1 {
    --r: -7deg;
    animation: sac-floaty 6s ease-in-out infinite;
}

.sac-page .photo-float.p2 {
    --r: 5deg;
    animation: sac-floaty 7s ease-in-out infinite .4s;
}

.sac-page .photo-float.p3 {
    --r: -4deg;
    animation: sac-floaty 6.6s ease-in-out infinite .2s;
}

.sac-page .chip.c1 {
    animation: sac-floaty 5s ease-in-out infinite .2s;
}

.sac-page .chip.c2 {
    animation: sac-floaty 5.5s ease-in-out infinite .6s;
}

.sac-page .chip.c3 {
    animation: sac-floaty 6.2s ease-in-out infinite .1s;
}

@media (prefers-reduced-motion: reduce) {
    .sac-page .photo-float,
    .sac-page .chip {
        animation: none !important;
    }
}

/* ---------- LOGO / USE-CASE STRIP ---------- */
.sac-page .strip {
    padding: 36px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.sac-page .strip-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.sac-page .strip-label {
    font-size: 12.5px;
    color: var(--ink-soft);
    margin-right: 6px;
}

.sac-page .pill {
    font-size: 13.5px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--ink-soft);
}

/* ---------- SECTIONS ---------- */
.sac-page .section {
    padding: 96px 0;
}

.sac-page .section-head {
    max-width: 560px;
    margin-bottom: 48px;
}

    .sac-page .section-head .mono {
        font-size: 12px;
        color: var(--violet-deep);
        margin-bottom: 10px;
        display: block;
    }

    .sac-page .section-head h2 {
        font-size: 36px;
        font-weight: 700;
    }

    .sac-page .section-head p {
        margin-top: 14px;
        color: var(--ink-soft);
        font-size: 16px;
        line-height: 1.6;
    }

/* ---------- DEVELOPERS (color cards, no photos — per direction) ---------- */
.sac-page .template-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.sac-page .tpl {
    border-radius: 16px;
    min-height: 220px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 32px -20px rgba(19, 32, 24, 0.35);
    transition: transform .25s ease, box-shadow .25s ease;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

    .sac-page .tpl:hover {
        transform: translateY(-6px);
        box-shadow: 0 22px 40px -20px rgba(19, 32, 24, 0.4);
    }

.sac-page .tpl-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin-bottom: auto;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.sac-page .tpl-tag {
    font-size: 11px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    display: inline-block;
    margin-bottom: 10px;
    width: fit-content;
}

.sac-page .tpl-label {
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    font-family: "Space Grotesk", sans-serif;
}

.sac-page .tpl1 {
    background: linear-gradient(160deg, #22B573, #0E8F57);
}

.sac-page .tpl2 {
    background: linear-gradient(160deg, #17D9A3, #0E9E7C);
}

.sac-page .tpl3 {
    background: linear-gradient(160deg, #FF9457, #D96A2C);
}

.sac-page .tpl4 {
    background: linear-gradient(160deg, #3FAE7B, #145C38);
}

/* ---------- FEATURES ---------- */
.sac-page .feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.sac-page .feature {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px;
    transition: box-shadow .2s ease, transform .2s ease;
}

    .sac-page .feature:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 40px -24px rgba(19, 32, 24, 0.35);
    }

.sac-page .feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.sac-page .fi1 {
    background: rgba(34, 181, 115, 0.12);
    color: var(--violet-deep);
}

.sac-page .fi2 {
    background: rgba(23, 217, 163, 0.15);
    color: #0E9E7C;
}

.sac-page .fi3 {
    background: rgba(255, 148, 87, 0.14);
    color: #D96A2C;
}

.sac-page .feature h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.sac-page .feature p {
    font-size: 14.5px;
    color: var(--ink-soft);
    line-height: 1.6;
}

/* ---------- CTA BAND ---------- */
.sac-page .cta-band {
    background: linear-gradient(120deg, var(--violet-deep), var(--violet) 55%, var(--aqua) 130%);
    border-radius: 28px;
    padding: 64px 56px;
    margin: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    max-width: 1116px;
    margin-left: auto;
    margin-right: auto;
    color: #fff;
}

    .sac-page .cta-band h2 {
        font-size: 32px;
        max-width: 420px;
        font-weight: 700;
    }

    .sac-page .cta-band p {
        margin-top: 10px;
        color: rgba(255, 255, 255, 0.85);
        font-size: 15px;
    }

.sac-page .g-btn.on-dark {
    background: #fff;
    color: var(--ink);
    border: none;
}

/* ---------- FOOTER ---------- */
.sac-page footer {
    padding: 56px 0 40px;
    border-top: 1px solid var(--line);
    margin-top: 40px;
}

    .sac-page footer .logo img {
        width: 100px;
        height: 70px;
    }

.sac-page .footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.sac-page .footer-links {
    display: flex;
    gap: 26px;
    font-size: 13.5px;
    color: var(--ink-soft);
}

    .sac-page .footer-links a:hover {
        color: var(--ink);
    }

.sac-page .copyright {
    font-size: 13px;
    color: var(--ink-soft);
}

/* ---------- LOGIN / SIGNUP POPUP MODAL ---------- */
.sac-page .modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(19, 32, 24, 0.55);
    backdrop-filter: blur(3px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

    .sac-page .modal-overlay.open {
        display: flex;
    }

.sac-page .login-modal {
    width: 100%;
    max-width: 440px;
    background: var(--panel);
    border-radius: 20px;
    box-shadow: 0 30px 70px -20px rgba(19, 32, 24, 0.5);
    padding: 36px 36px 28px;
    position: relative;
    animation: sac-modal-pop .22s ease;
}

@keyframes sac-modal-pop {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.sac-page .modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--panel);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--ink-soft);
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

    .sac-page .modal-close:hover {
        background: #f0faf3;
        color: var(--ink);
    }

.sac-page .login-modal h4 {
    font-family: "Space Grotesk", sans-serif;
    color: var(--ink);
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.sac-page .login-modal .subtitle {
    color: var(--ink-soft);
    font-size: .92rem;
    margin-bottom: 22px;
}

.sac-page .modal-error {
    display: none;
    background: #FDECEC;
    border: 1px solid #F5B5B5;
    color: #B3261E;
    font-size: .85rem;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 18px;
    line-height: 1.4;
}

    .sac-page .modal-error.show {
        display: block;
    }

.sac-page .account-list {
    margin-bottom: 4px;
}

.sac-page .account-item {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 10px 8px;
    border: none;
    background: transparent;
    border-radius: 10px;
    text-align: left;
    cursor: pointer;
}

    .sac-page .account-item:hover {
        background: #F5FBF6;
    }

.sac-page .account-avatar {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
}

    .sac-page .account-avatar .provider-badge {
        position: absolute;
        bottom: -2px;
        right: -2px;
        width: 16px;
        height: 16px;
        background: #fff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: .55rem;
        box-shadow: 0 0 0 2px #fff;
    }

.sac-page .account-text {
    min-width: 0;
}

.sac-page .account-name {
    color: var(--ink);
    font-weight: 600;
    font-size: .95rem;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.sac-page .account-email {
    color: var(--ink-soft);
    font-size: .82rem;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.sac-page .divider-or {
    display: flex;
    align-items: center;
    text-align: center;
    color: #9AA79F;
    font-size: .78rem;
    margin: 18px 0;
}

    .sac-page .divider-or::before,
    .sac-page .divider-or::after {
        content: "";
        flex: 1;
        border-bottom: 1px solid var(--line);
    }

    .sac-page .divider-or:not(:empty)::before {
        margin-right: .75em;
    }

    .sac-page .divider-or:not(:empty)::after {
        margin-left: .75em;
    }

.sac-page .google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #d6d6dc;
    background: #fff;
    font-weight: 600;
    font-size: .95rem;
    color: var(--ink);
    cursor: pointer;
}

    .sac-page .google-btn:hover {
        background: #f5f5f7;
    }

.sac-page .legal-text {
    color: var(--ink-soft);
    font-size: .8rem;
    margin-top: 22px;
    margin-bottom: 0;
    line-height: 1.5;
}

    .sac-page .legal-text a {
        color: var(--violet-deep);
        text-decoration: none;
    }

        .sac-page .legal-text a:hover {
            color: var(--violet);
            text-decoration: underline;
        }

/* ======================================================================
   SAC RESPONSIVE — mobile-first pass
   Breakpoints: 920px (tablet), 640px (large phone), 480px (small phone),
   400px (very small phone). Every rule below is scoped under .sac-page
   so it never leaks into the other (auth-panel) styles on this file.
   ====================================================================== */

@media (max-width: 920px) {
    .sac-page .hero-grid {
        grid-template-columns: 1fr;
    }

    .sac-page .canvas-stage {
        height: 340px;
        margin-top: 20px;
    }

    .sac-page .nav-links {
        display: none;
    }

    .sac-page .hero h1 {
        font-size: 40px;
    }

    .sac-page .template-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sac-page .feature-grid {
        grid-template-columns: 1fr;
    }

    .sac-page .cta-band {
        flex-direction: column;
        text-align: center;
        padding: 44px 28px;
    }
}

@media (max-width: 640px) {
    .sac-page .wrap {
        padding: 0 18px;
    }

    .sac-page .nav-inner {
        padding: 14px 18px;
    }

    .sac-page .logo img {
        width: 72px;
        height: 50px;
    }

    .sac-page .nav-actions {
        gap: 8px;
    }

        .sac-page .nav-actions .g-btn {
            padding: 8px 12px;
            font-size: 13px;
        }

            .sac-page .nav-actions .g-btn span {
                display: none;
            }

    .sac-page .hero {
        padding: 44px 0 36px;
    }

        .sac-page .hero h1 {
            font-size: 32px;
            line-height: 1.12;
        }

        .sac-page .hero p.lead {
            font-size: 15.5px;
            margin-top: 16px;
        }

    .sac-page .hero-cta {
        flex-direction: column;
        align-items: stretch;
        margin-top: 24px;
    }

    .sac-page .g-btn.large {
        width: 100%;
        justify-content: center;
        padding: 14px 18px;
    }

    .sac-page .cta-note {
        text-align: center;
    }

    /* Floating photos: drop the scattered absolute layout in favor of
       a clean 3-photo row that can never overflow the viewport. */
    .sac-page .canvas-stage {
        height: auto;
        min-height: 0;
        display: flex;
        gap: 12px;
        justify-content: center;
        padding: 8px 0 34px;
    }

    .sac-page .photo-float,
    .sac-page .photo-float.p1,
    .sac-page .photo-float.p2,
    .sac-page .photo-float.p3 {
        position: relative;
        top: auto;
        left: auto;
        width: 31%;
        height: 130px;
        transform: none;
        animation: none;
    }

        .sac-page .photo-float.p2 {
            margin-top: -14px;
        }

    .sac-page .chip {
        position: absolute;
        font-size: 11px;
        padding: 6px 10px;
        animation: none;
    }

        .sac-page .chip.c1 {
            top: -4px;
            right: 6px;
        }

        .sac-page .chip.c2 {
            bottom: -4px;
            right: 6%;
        }

        .sac-page .chip.c3 {
            bottom: -4px;
            left: 6%;
        }

    .sac-page .strip-inner {
        gap: 8px;
    }

    .sac-page .pill {
        font-size: 12px;
        padding: 6px 12px;
    }

    .sac-page .section {
        padding: 56px 0;
    }

    .sac-page .section-head h2 {
        font-size: 26px;
    }

    .sac-page .section-head p {
        font-size: 14.5px;
    }

    .sac-page .template-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .sac-page .tpl {
        min-height: 150px;
        padding: 14px;
    }

    .sac-page .tpl-avatar {
        width: 48px;
        height: 48px;
    }

    .sac-page .tpl-label {
        font-size: 12.5px;
    }

    .sac-page .tpl-tag {
        font-size: 10px;
        padding: 3px 8px;
    }

    .sac-page .cta-band {
        margin: 0 18px;
        padding: 36px 22px;
        border-radius: 20px;
    }

        .sac-page .cta-band h2 {
            font-size: 24px;
        }

    .sac-page footer {
        padding: 36px 0 28px;
    }

        .sac-page footer .logo img {
            width: 72px;
            height: 50px;
        }

    .sac-page .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 18px;
    }

    .sac-page .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .sac-page .login-modal {
        padding: 28px 22px 22px;
        border-radius: 16px;
    }
}

@media (max-width: 400px) {
    .sac-page .template-grid {
        grid-template-columns: 1fr;
    }

    .sac-page .hero h1 {
        font-size: 28px;
    }

    .sac-page .canvas-stage {
        flex-wrap: wrap;
    }

    .sac-page .photo-float,
    .sac-page .photo-float.p1,
    .sac-page .photo-float.p2,
    .sac-page .photo-float.p3 {
        width: 47%;
        height: 110px;
        margin-top: 0;
    }

        .sac-page .photo-float.p3 {
            width: 100%;
        }
}
