:root {
    --bg: #070a12;
    --panel: #0e1422;
    --panel-soft: #131b2c;
    --line: rgba(255, 255, 255, 0.09);
    --muted: #8994aa;
    --text: #f5f7fb;
    --accent: #38bdf8;
    --accent-strong: #0ea5e9;
    --orange: #f97316;
    --success: #42d392;
    --font-body: "Segoe UI", Tahoma, Arial, sans-serif;
    --font-display: "Bahnschrift", "Arial Narrow", "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 78% 4%, rgba(14, 165, 233, 0.13), transparent 34%),
        radial-gradient(circle at 45% 80%, rgba(249, 115, 22, 0.08), transparent 38%),
        var(--bg);
    color: var(--text);
    font-family: var(--font-body);
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    color: inherit;
    font: inherit;
}

.portal-shell {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    display: flex;
    height: 100vh;
    flex-direction: column;
    padding: 28px 20px 22px;
    border-right: 1px solid var(--line);
    background: rgba(8, 12, 21, 0.93);
    backdrop-filter: blur(20px);
    z-index: 40;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 6px 40px;
}

.brand img {
    width: 82px;
    height: auto;
    padding: 5px 7px;
    border-radius: 8px;
    background: #fff;
}

.brand span {
    color: #d6e1f3;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.main-nav {
    display: grid;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #9ba7ba;
    font-size: 13px;
    font-weight: 600;
    transition: 180ms ease;
}

.nav-item:hover {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.035);
    color: #fff;
}

.nav-item.active {
    border-color: rgba(56, 189, 248, 0.31);
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.2), rgba(14, 165, 233, 0.04));
    color: #fff;
    box-shadow: inset 3px 0 var(--accent);
}

.nav-icon {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
    color: var(--accent);
    font-size: 18px;
}

.sidebar-card {
    display: grid;
    gap: 7px;
    margin-top: auto;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(26, 37, 58, 0.94), rgba(12, 18, 31, 0.95));
}

.sidebar-card strong {
    overflow: hidden;
    font-family: var(--font-display);
    font-size: 22px;
    text-overflow: ellipsis;
}

.sidebar-card > span:not(.eyebrow) {
    color: var(--muted);
    font-size: 11px;
}

.sidebar-card a {
    margin-top: 7px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
}

.main-content {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 36px 28px;
}

.topbar {
    display: flex;
    min-height: 94px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.topbar h1 {
    margin: 3px 0 0;
    font-family: var(--font-display);
    font-size: 27px;
    letter-spacing: 0.02em;
}

.eyebrow {
    color: var(--accent);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.2em;
}

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

.status-pill,
.logout-button {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    color: #c5cedd;
    font-size: 10px;
    font-weight: 700;
}

.status-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
}

.status-pill i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 12px var(--success);
}

.logout-button {
    padding: 9px 15px;
}

.logout-button:hover {
    border-color: rgba(249, 115, 22, 0.5);
    color: #fff;
}

.menu-button {
    display: none;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
    cursor: pointer;
}

.hero {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #111827;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.28);
}

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

.hero-image {
    object-fit: cover;
    object-position: center 40%;
}

.hero-shade {
    background:
        linear-gradient(90deg, rgba(4, 8, 17, 0.98) 0%, rgba(4, 8, 17, 0.76) 38%, rgba(4, 8, 17, 0.08) 72%),
        linear-gradient(0deg, rgba(4, 8, 17, 0.58), transparent 48%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    width: min(600px, 70%);
    min-height: 430px;
    flex-direction: column;
    justify-content: center;
    padding: 54px;
}

.hero-label {
    width: fit-content;
    padding: 6px 10px;
    border: 1px solid rgba(56, 189, 248, 0.45);
    border-radius: 5px;
    background: rgba(8, 15, 28, 0.7);
    color: var(--accent);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.hero h2 {
    margin: 18px 0 12px;
    font-family: var(--font-display);
    font-size: clamp(42px, 4.5vw, 68px);
    line-height: 0.95;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.8);
}

.hero p {
    max-width: 510px;
    margin: 0;
    color: #c0cad9;
    font-size: 13px;
    line-height: 1.75;
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 135px;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    transition: 180ms ease;
}

.primary-button {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #05121b;
    box-shadow: 0 8px 26px rgba(14, 165, 233, 0.26);
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 11px 30px rgba(14, 165, 233, 0.38);
}

.ghost-button {
    border: 1px solid rgba(255, 255, 255, 0.19);
    background: rgba(8, 14, 25, 0.68);
}

.ghost-button:hover {
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(8, 14, 25, 0.9);
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-top: 18px;
}

.stat-card {
    position: relative;
    display: flex;
    min-height: 118px;
    align-items: center;
    gap: 15px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(18, 27, 44, 0.96), rgba(10, 15, 26, 0.96));
}

.stat-icon {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.08);
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 22px;
}

.stat-card div {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.stat-label {
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.stat-card strong {
    overflow: hidden;
    font-family: var(--font-display);
    font-size: 24px;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stat-card small {
    color: #6f7b8e;
    font-size: 9px;
}

.action-card {
    border-color: rgba(249, 115, 22, 0.25);
    background: linear-gradient(145deg, rgba(47, 27, 19, 0.84), rgba(18, 17, 20, 0.96));
}

.action-card .stat-icon {
    border-color: rgba(249, 115, 22, 0.3);
    background: rgba(249, 115, 22, 0.1);
    color: var(--orange);
}

.action-card > a {
    margin-left: auto;
    color: var(--orange);
    font-size: 25px;
}

.news-section {
    padding-top: 44px;
}

.section-heading {
    display: flex;
    align-items: end;
    gap: 20px;
    margin-bottom: 20px;
}

.section-heading h2 {
    margin: 5px 0 0;
    font-family: var(--font-display);
    font-size: 30px;
}

.section-line {
    height: 1px;
    flex: 1;
    margin-bottom: 6px;
    background: linear-gradient(90deg, var(--line), transparent);
}

.news-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    gap: 16px;
}

.news-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
    transition: 220ms ease;
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
}

.news-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.featured .news-image {
    height: 220px;
}

.news-image::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(7, 10, 18, 0.8), transparent 55%);
    content: "";
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 300ms ease;
}

.news-card:hover .news-image img {
    transform: scale(1.04);
}

.news-image > span {
    position: absolute;
    bottom: 14px;
    left: 14px;
    z-index: 1;
    padding: 5px 8px;
    border-radius: 4px;
    background: var(--accent);
    color: #06111b;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.news-body {
    padding: 18px;
}

.news-body time {
    color: var(--accent);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.news-body h3 {
    margin: 8px 0;
    font-family: var(--font-display);
    font-size: 22px;
}

.news-body p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.65;
}

.news-body a {
    display: inline-flex;
    gap: 8px;
    margin-top: 15px;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
}

.news-body a span {
    color: var(--accent);
}

.portal-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 42px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: #596579;
    font-size: 9px;
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 35;
    visibility: hidden;
    background: rgba(0, 0, 0, 0.58);
    opacity: 0;
    transition: 180ms ease;
}

@media (max-width: 1180px) {
    .account-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .news-card.featured {
        grid-column: span 2;
    }
}

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

    .sidebar {
        position: fixed;
        left: 0;
        transform: translateX(-105%);
        width: 255px;
        transition: 220ms ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-backdrop.visible {
        visibility: visible;
        opacity: 1;
    }

    .menu-button {
        display: block;
    }

    .topbar {
        min-height: 82px;
    }

    .topbar-actions .status-pill {
        display: none;
    }

    .main-content {
        padding: 0 20px 24px;
    }

    .hero-content {
        width: 80%;
        padding: 38px;
    }
}

@media (max-width: 620px) {
    .main-content {
        padding-inline: 13px;
    }

    .topbar h1 {
        font-size: 22px;
    }

    .topbar-actions .logout-button {
        display: none;
    }

    .hero {
        min-height: 470px;
    }

    .hero-image {
        object-position: 62% center;
    }

    .hero-shade {
        background: linear-gradient(0deg, rgba(4, 8, 17, 0.98) 8%, rgba(4, 8, 17, 0.45) 66%, rgba(4, 8, 17, 0.2));
    }

    .hero-content {
        width: 100%;
        min-height: 470px;
        justify-content: end;
        padding: 28px 24px;
    }

    .hero h2 {
        font-size: 40px;
    }

    .account-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card.featured {
        grid-column: auto;
    }

    .section-line {
        display: none;
    }

    .portal-footer {
        flex-direction: column;
        gap: 8px;
    }
}

.page-intro {
    position: relative;
    display: flex;
    min-height: 220px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    overflow: hidden;
    margin-bottom: 18px;
    padding: 34px 38px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background:
        linear-gradient(100deg, rgba(10, 17, 30, 0.98) 28%, rgba(10, 17, 30, 0.72)),
        url("assets/images/news-konoha.jpg") center 44% / cover;
}

.page-intro > div {
    position: relative;
    z-index: 1;
    max-width: 650px;
}

.page-intro h2 {
    margin: 8px 0 10px;
    font-family: var(--font-display);
    font-size: clamp(34px, 3.4vw, 52px);
    line-height: 1;
}

.page-intro p {
    max-width: 590px;
    margin: 0;
    color: #b7c2d3;
    font-size: 12px;
    line-height: 1.75;
}

.page-intro > img {
    width: 180px;
    height: 130px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.38);
    transform: rotate(2deg);
}

.redeem-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(340px, 0.97fr);
    gap: 18px;
}

.redeem-panel,
.redeem-visual {
    min-height: 470px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(18, 27, 44, 0.98), rgba(9, 14, 24, 0.98));
}

.redeem-panel {
    padding: 32px;
}

.panel-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.panel-heading h2,
.redeem-visual h2 {
    margin: 5px 0 0;
    font-family: var(--font-display);
    font-size: 32px;
}

.panel-badge {
    padding: 7px 10px;
    border: 1px solid rgba(66, 211, 146, 0.28);
    border-radius: 6px;
    background: rgba(66, 211, 146, 0.08);
    color: var(--success);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.redeem-form {
    display: grid;
    gap: 10px;
}

.redeem-form label {
    margin-top: 8px;
    color: #cbd5e3;
    font-size: 10px;
    font-weight: 700;
}

.redeem-form select,
.redeem-form input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9px;
    outline: none;
    background: rgba(5, 9, 17, 0.78);
    color: var(--text);
    font: 600 12px var(--font-body);
    transition: 180ms ease;
}

.redeem-form select:focus,
.redeem-form input:focus {
    border-color: rgba(56, 189, 248, 0.65);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.redeem-form input::placeholder {
    color: #667287;
}

.redeem-submit {
    width: 100%;
    min-height: 50px;
    margin-top: 14px;
    border: 0;
    cursor: pointer;
}

.redeem-submit:disabled {
    cursor: wait;
    opacity: 0.62;
}

.form-message {
    min-height: 20px;
    margin: 2px 0 0;
    font-size: 10px;
    line-height: 1.5;
}

.form-message.success {
    color: var(--success);
}

.form-message.error {
    color: #ff7b7b;
}

.redeem-visual {
    position: relative;
    display: flex;
    align-items: end;
}

.redeem-visual > img,
.redeem-visual-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.redeem-visual > img {
    object-fit: cover;
    object-position: center 36%;
}

.redeem-visual-overlay {
    background:
        linear-gradient(0deg, rgba(5, 9, 17, 0.98) 4%, rgba(5, 9, 17, 0.18) 76%),
        linear-gradient(90deg, rgba(5, 9, 17, 0.4), transparent);
}

.redeem-visual-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 36px;
}

.redeem-visual-content p {
    max-width: 460px;
    color: #c9d2df;
    font-size: 11px;
    line-height: 1.7;
}

.redeem-visual-content .ghost-button {
    width: fit-content;
    margin-top: 10px;
}

.redeem-tips {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.redeem-tips article {
    display: flex;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(14, 20, 34, 0.78);
}

.redeem-tips article > span {
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 25px;
}

.redeem-tips strong {
    font-size: 11px;
}

.redeem-tips p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.55;
}

@media (max-width: 980px) {
    .redeem-layout {
        grid-template-columns: 1fr;
    }

    .redeem-visual {
        min-height: 390px;
    }
}

@media (max-width: 720px) {
    .page-intro {
        min-height: 260px;
        padding: 28px 24px;
    }

    .page-intro > img {
        display: none;
    }

    .redeem-panel,
    .redeem-visual-content {
        padding: 24px;
    }

    .redeem-tips {
        grid-template-columns: 1fr;
    }
}

/* Public landing page */
.public-page {
    background:
        radial-gradient(circle at 82% 0%, rgba(14, 165, 233, 0.17), transparent 32%),
        radial-gradient(circle at 14% 72%, rgba(249, 115, 22, 0.09), transparent 34%),
        var(--bg);
}

.public-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 10, 18, 0.9);
    backdrop-filter: blur(20px);
}

.public-nav-inner {
    display: flex;
    width: min(1440px, calc(100% - 48px));
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin: 0 auto;
}

.public-brand {
    margin: 0;
}

.public-brand img {
    width: 76px;
}

.public-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.public-links > a {
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #b5c0d2;
    font-size: 11px;
    font-weight: 700;
    transition: 180ms ease;
}

.public-links > a:hover {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.public-links .public-login-button {
    border-color: rgba(56, 189, 248, 0.42);
    background: rgba(14, 165, 233, 0.16);
    color: #fff;
}

.public-menu-button {
    margin-left: auto;
}

.public-main {
    width: min(1440px, calc(100% - 48px));
    margin: 0 auto;
    padding: 34px 0 28px;
}

.public-hero {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #111827;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

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

.public-hero-image {
    object-fit: cover;
    object-position: center 42%;
}

.public-hero-overlay {
    background:
        linear-gradient(90deg, rgba(4, 8, 17, 0.98) 0%, rgba(4, 8, 17, 0.78) 42%, rgba(4, 8, 17, 0.08) 76%),
        linear-gradient(0deg, rgba(4, 8, 17, 0.74), transparent 52%);
}

.public-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    width: min(720px, 76%);
    min-height: 520px;
    flex-direction: column;
    justify-content: center;
    padding: 64px;
}

.public-hero h1 {
    margin: 18px 0 16px;
    font-family: var(--font-display);
    font-size: clamp(46px, 6vw, 82px);
    line-height: 0.94;
    text-shadow: 0 5px 22px rgba(0, 0, 0, 0.8);
}

.public-hero p {
    max-width: 580px;
    margin: 0;
    color: #c7d1df;
    font-size: 14px;
    line-height: 1.75;
}

.public-hero-actions {
    margin-top: 30px;
}

.public-login-note {
    width: fit-content;
    margin-top: 14px;
    color: #94a3b8;
    font-size: 10px;
}

.public-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.public-feature {
    display: flex;
    min-height: 150px;
    gap: 18px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(18, 27, 44, 0.94), rgba(10, 15, 26, 0.96));
}

.public-feature-icon {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 12px;
    background: rgba(14, 165, 233, 0.12);
    color: var(--accent);
    font-size: 20px;
}

.public-feature h2 {
    margin: 8px 0 6px;
    font-family: var(--font-display);
    font-size: 20px;
}

.public-feature p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

.public-news {
    margin-top: 54px;
}

.public-footer {
    margin-top: 54px;
}

/* Public login page */
.login-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 72% 14%, rgba(14, 165, 233, 0.15), transparent 30%),
        var(--bg);
}

.login-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(0, 1.12fr) minmax(420px, 0.88fr);
}

.login-visual {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.login-visual > img,
.login-visual-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.login-visual > img {
    object-fit: cover;
    object-position: center;
}

.login-visual-overlay {
    background:
        linear-gradient(90deg, rgba(4, 8, 17, 0.7), rgba(4, 8, 17, 0.2)),
        linear-gradient(0deg, rgba(4, 8, 17, 0.92), transparent 64%);
}

.login-brand {
    position: absolute;
    top: 34px;
    left: 38px;
    z-index: 2;
}

.login-visual-copy {
    position: absolute;
    z-index: 2;
    right: 42px;
    bottom: 54px;
    left: 42px;
    max-width: 620px;
}

.login-visual-copy h1 {
    margin: 16px 0 12px;
    font-family: var(--font-display);
    font-size: clamp(44px, 5vw, 72px);
    line-height: 0.95;
}

.login-visual-copy p {
    max-width: 500px;
    margin: 0;
    color: #c5cfdd;
    font-size: 13px;
    line-height: 1.7;
}

.login-panel {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 48px;
    border-left: 1px solid var(--line);
    background: rgba(8, 12, 21, 0.84);
}

.login-panel {
    position: relative;
}

.login-back {
    position: absolute;
    top: 28px;
    right: 34px;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 700;
}

.login-back:hover {
    color: #fff;
}

.login-card {
    width: min(430px, 100%);
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(20, 30, 48, 0.97), rgba(10, 15, 26, 0.98));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.login-card h2 {
    margin: 10px 0 5px;
    font-family: var(--font-display);
    font-size: 34px;
}

.login-subtitle {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

.login-alert {
    margin-bottom: 18px;
    padding: 11px 13px;
    border: 1px solid rgba(248, 113, 113, 0.34);
    border-radius: 8px;
    background: rgba(127, 29, 29, 0.24);
    color: #fecaca;
    font-size: 10px;
    line-height: 1.5;
}

.login-form {
    display: grid;
    gap: 9px;
}

.login-form label {
    margin-top: 7px;
    color: #cbd5e1;
    font-size: 10px;
    font-weight: 700;
}

.login-form input {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
    background: rgba(3, 7, 14, 0.62);
    color: #fff;
    font: inherit;
    font-size: 12px;
}

.login-form input:focus {
    border-color: rgba(56, 189, 248, 0.65);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.login-submit {
    width: 100%;
    margin-top: 14px;
}

.login-register {
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 10px;
    text-align: center;
}

.login-register a {
    color: var(--accent);
    font-weight: 700;
}

@media (max-width: 980px) {
    .public-feature-grid {
        grid-template-columns: 1fr;
    }

    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-visual {
        min-height: 340px;
    }

    .login-visual-copy {
        right: 24px;
        bottom: 30px;
        left: 24px;
    }

    .login-panel {
        min-height: auto;
        padding: 76px 24px 48px;
        border-top: 1px solid var(--line);
        border-left: 0;
    }
}

@media (max-width: 760px) {
    .public-nav-inner,
    .public-main {
        width: min(100% - 28px, 1440px);
    }

    .public-menu-button {
        display: block;
    }

    .public-links {
        position: absolute;
        top: 74px;
        right: 14px;
        left: 14px;
        display: none;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: rgba(8, 12, 21, 0.98);
        box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4);
    }

    .public-links.open {
        display: grid;
    }

    .public-links > a {
        padding: 12px;
    }

    .public-hero {
        min-height: 560px;
        border-radius: 18px;
    }

    .public-hero-content {
        width: 100%;
        min-height: 560px;
        padding: 34px 24px;
    }

    .public-hero h1 {
        font-size: clamp(42px, 13vw, 62px);
    }

    .public-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .public-hero-actions .primary-button,
    .public-hero-actions .ghost-button {
        width: 100%;
    }

    .public-news {
        margin-top: 38px;
    }

    .login-brand {
        top: 22px;
        left: 20px;
    }

    .login-visual-copy {
        display: none;
    }

    .login-visual {
        min-height: 230px;
    }

    .login-panel {
        padding: 64px 16px 32px;
    }

    .login-card {
        padding: 24px;
    }

    .login-back {
        top: 20px;
        right: 20px;
    }
}
