:root {
    --ink: #121d1a;
    --ink-soft: #24312d;
    --paper: #f7f5f0;
    --white: #fffef9;
    --lime: #a7cfbb;
    --line: rgba(18, 29, 26, .14);
    --muted: #66716d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.demo-login {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 95% 8%, rgba(139, 181, 160, .16), transparent 20rem),
        var(--paper);
    color: var(--ink);
    font: 15px/1.5 'DM Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.login-nav {
    width: min(1240px, calc(100% - 64px));
    height: 92px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.login-nav .brand,
.demo-footer .brand {
    color: var(--ink);
    font: 700 34px/1 Georgia, serif;
    letter-spacing: -2px;
    text-decoration: none;
}
.brand span { color: #ee6d4f; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links > a {
    color: var(--ink);
    padding: 12px 16px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.nav-links > a:hover { background: rgba(18, 29, 26, .07); }
.nav-links .nav-start {
    margin-left: 6px;
    padding: 13px 20px;
    background: var(--ink);
    color: #fff;
}
.nav-links .nav-start:hover { background: #30413b; transform: translateY(-2px); }
.nav-start span { margin-left: 8px; color: var(--lime); }

.login-main {
    width: min(1240px, calc(100% - 64px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(290px, .72fr);
    gap: 14px;
}
.demo-hero {
    min-height: 480px;
    padding: 30px 36px 28px;
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    color: #fff;
    background:
        radial-gradient(circle at 86% 20%, rgba(167, 207, 187, .13), transparent 17rem),
        var(--ink);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.hero-grid {
    position: absolute;
    inset: 0;
    opacity: .28;
    background-image:
        linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(115deg, transparent 30%, #000 100%);
}
.demo-hero::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    right: 9%;
    top: 17%;
    border-radius: 50%;
    border: 1px solid rgba(167, 207, 187, .55);
    box-shadow: 0 0 0 28px rgba(167, 207, 187, .035), 0 0 0 56px rgba(167, 207, 187, .025);
}
.live-chip {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    color: #d9e2de;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.live-chip span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 0 5px rgba(167, 207, 187, .12);
}
.hero-copy { position: relative; z-index: 1; max-width: 760px; margin: 30px 0 auto; }
.eyebrow {
    margin: 0 0 13px;
    color: var(--lime);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.demo-hero h1 {
    margin: 0;
    font: 700 clamp(42px, 4.5vw, 64px)/1 'Manrope', sans-serif;
    letter-spacing: -.065em;
}
.demo-hero h1 em { color: var(--lime); font-style: normal; }
.hero-intro {
    max-width: 625px;
    margin: 18px 0 0;
    color: #bdc8c4;
    font-size: 15px;
    line-height: 1.6;
}
.hero-bottom {
    position: relative;
    z-index: 1;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.13);
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}
.hero-proof { display: flex; gap: 26px; }
.hero-proof span { display: flex; align-items: baseline; gap: 7px; color: #879590; font-size: 12px; }
.hero-proof strong { color: #fff; font: 700 19px 'Manrope', sans-serif; }
.hero-scroll { color: #fff; text-decoration: none; font-size: 12px; font-weight: 700; }
.hero-scroll span { color: var(--lime); margin-left: 9px; }

.credential-card {
    min-height: 480px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #dcebe4;
    display: flex;
    flex-direction: column;
}
.credential-top { display: flex; align-items: center; justify-content: space-between; }
.key-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ink);
    color: var(--lime);
}
.key-icon svg { width: 20px; height: 20px; }
.access-status { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.access-status i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #16a56f; }
.password-block { margin-top: 52px; }
.password-block p { margin: 0 0 10px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.password-block h2 { margin: 0; font: 800 clamp(28px, 2.6vw, 37px) 'Manrope', sans-serif; letter-spacing: -.055em; }
.password-block > span { display: block; margin-top: 8px; color: rgba(18,29,26,.65); font-size: 13px; }
.access-details { margin-top: auto; border-top: 1px solid rgba(18,29,26,.2); }
.access-details div { padding: 13px 0; border-bottom: 1px solid rgba(18,29,26,.16); display: flex; justify-content: space-between; gap: 15px; }
.access-details span { color: rgba(18,29,26,.58); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.access-details strong { text-align: right; font-size: 13px; }
.access-note { margin-top: 17px; display: grid; grid-template-columns: 24px 1fr; gap: 9px; align-items: start; }
.access-note > span { width: 22px; height: 22px; border: 1px solid rgba(18,29,26,.3); border-radius: 50%; display: grid; place-items: center; font: 700 11px Georgia, serif; }
.access-note p { margin: 1px 0 0; color: rgba(18,29,26,.7); font-size: 11px; line-height: 1.55; }

.workspace {
    width: min(1240px, calc(100% - 64px));
    margin: 88px auto 0;
    scroll-margin-top: 32px;
}
.workspace-head {
    margin-bottom: 34px;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 64px;
    align-items: end;
}
.section-kicker { margin: 0 0 14px; color: #5a6762; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.workspace-head h2 { margin: 0; font: 700 clamp(35px, 3.8vw, 52px)/1.04 'Manrope', sans-serif; letter-spacing: -.06em; }
.workspace-intro { max-width: 470px; margin: 0 0 6px; color: var(--muted); font-size: 14px; line-height: 1.65; }

.login-role-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.login-role-card {
    min-height: 350px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 19px;
    background: var(--white);
    grid-column: span 6;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transition: transform .3s ease, box-shadow .3s ease;
}
.login-role-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(18,29,26,.12); }
.login-role-card:nth-child(n+3) { grid-column: span 4; min-height: 335px; }
.login-role-card.lime { background: #e6eee9; }
.login-role-card.sky { background: #e6edf1; }
.login-role-card.sand { background: #f0e9dc; }
.login-role-card.mint { background: #e2ece7; }
.login-role-card.coral { background: #eee4df; }
.card-topline { display: flex; align-items: center; justify-content: space-between; }
.role-number { color: rgba(18,29,26,.58); font: 700 12px 'Manrope', sans-serif; letter-spacing: .1em; }
.role-arrow { width: 37px; height: 37px; display: grid; place-items: center; border: 1px solid rgba(18,29,26,.24); border-radius: 50%; font-size: 15px; transition: background .2s, color .2s, transform .2s; }
.login-role-card:hover .role-arrow { background: var(--ink); color: #fff; transform: rotate(45deg); }
.role-copy { margin-top: 25px; }
.role-copy > p { margin: 0 0 10px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.role-copy h3 { max-width: 470px; margin: 0; font: 700 clamp(24px, 2vw, 32px)/1.1 'Manrope', sans-serif; letter-spacing: -.05em; }
.role-description { max-width: 510px; margin-top: 12px; color: rgba(18,29,26,.65); font-size: 12px; line-height: 1.55; }
.card-access { margin-top: auto; padding-top: 20px; display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.credentials span { display: block; color: rgba(18,29,26,.5); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.credentials strong { display: block; margin-top: 5px; font-size: 12px; overflow-wrap: anywhere; }
.login-role-card a {
    flex: 0 0 auto;
    padding: 12px 15px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
}
.login-role-card a span { margin-left: 9px; color: var(--lime); }
.login-role-card:nth-child(n+3) .card-access { display: block; }
.login-role-card:nth-child(n+3) a { display: flex; justify-content: space-between; margin-top: 18px; }

.demo-footer {
    width: min(1240px, calc(100% - 64px));
    margin: 72px auto 0;
    padding: 36px 0 46px;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}
.demo-footer .brand { font-size: 29px; }
.demo-footer p { margin: 0; color: #56615d; font-size: 12px; }
.demo-footer > span { justify-self: end; color: #7c8682; font-size: 11px; }

@media (max-width: 1020px) {
    .login-main { grid-template-columns: 1fr; }
    .demo-hero { min-height: 480px; }
    .credential-card { min-height: 330px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 44px; }
    .credential-top { grid-column: 1 / -1; }
    .password-block { margin-top: 22px; }
    .access-details { margin-top: 22px; }
    .access-note { grid-column: 1 / -1; }
    .login-role-card:nth-child(n) { grid-column: span 6; }
}

@media (max-width: 720px) {
    .login-nav, .login-main, .workspace, .demo-footer { width: min(100% - 32px, 1380px); }
    .login-nav { height: 88px; }
    .nav-links > a:not(.nav-start) { display: none; }
    .nav-links .nav-start { padding: 11px 15px; font-size: 12px; }
    .demo-hero { min-height: 500px; padding: 24px 22px; border-radius: 19px; }
    .demo-hero::after { width: 130px; height: 130px; right: -30px; top: 25%; }
    .hero-copy { margin-top: 46px; }
    .demo-hero h1 { font-size: clamp(38px, 10.7vw, 52px); }
    .hero-intro { font-size: 15px; }
    .hero-bottom { align-items: start; }
    .hero-proof { gap: 16px; }
    .hero-proof span { display: block; }
    .hero-proof strong { display: block; }
    .hero-scroll { display: none; }
    .credential-card { min-height: 420px; padding: 23px; display: flex; }
    .password-block { margin-top: 45px; }
    .access-details { margin-top: auto; }
    .workspace { margin-top: 68px; }
    .workspace-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 32px; }
    .workspace-head h2 { font-size: 36px; }
    .login-role-card:nth-child(n) { grid-column: 1 / -1; min-height: 340px; padding: 22px; }
    .login-role-card .card-access { display: block; }
    .login-role-card a { display: flex; justify-content: space-between; margin-top: 18px; }
    .demo-footer { margin-top: 74px; grid-template-columns: 1fr auto; }
    .demo-footer p { display: none; }
}

@media (max-width: 390px) {
    .login-nav .brand { font-size: 32px; }
    .nav-start span { display: none; }
    .demo-hero h1 { font-size: 39px; }
    .hero-proof { gap: 12px; }
    .hero-proof strong { font-size: 20px; }
    .workspace-head h2 { font-size: 36px; }
    .demo-footer > span { max-width: 160px; text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}
