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

:root {
    --ink: #060c1a;
    --ink-muted: #506080;
    --slate: #6888b0;
    --silver: #506080;
    --fog: #e2e8f0;
    --snow: #f8fafc;
    --white: #ffffff;
    --amber: #f5a623;
    --amber-d: #ffc040;
    --amber-glow: rgba(245, 166, 35, 0.15);
    --navy: #060c1a;
    --card-border: rgba(255, 255, 255, 0.065);
    --success: #2edf9a;
}

html,
body {
    height: 100%;
    overflow: hidden;
    font-family:
        'Plus Jakarta Sans',
        -apple-system,
        sans-serif;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

body {
    display: flex;
}

/* =========================================================
   LEFT PANEL — 40%
   ========================================================= */
.panel-left {
    width: 40%;
    flex-shrink: 0;
    background: var(--white);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.panel-left::after {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--amber), var(--amber-d) 60%, transparent);
    z-index: 10;
}

.left-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 48px;
}

.auth-logo,
.auth-box,
.or-divider,
.sso-row {
    width: 100%;
    max-width: 380px;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 48px;
    text-decoration: none;
}

.brand-mark {
    width: 32px;
    height: 32px;
    background: var(--ink);
    border-radius: 8px;
    position: relative;
    flex-shrink: 0;
}

.brand-mark::before {
    content: '';
    position: absolute;
    inset: 3px;
    background:
        linear-gradient(135deg, var(--amber) 0 50%, transparent 50%) top left / 10px 10px no-repeat,
        linear-gradient(135deg, transparent 0 50%, rgba(255, 255, 255, 0.2) 50%) top right / 10px
            10px no-repeat,
        linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0 50%, transparent 50%) bottom left / 10px
            10px no-repeat,
        linear-gradient(135deg, transparent 0 50%, var(--amber) 50%) bottom right / 10px 10px
            no-repeat;
}

.brand-name {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 18px;
    color: var(--ink);
    letter-spacing: -0.2px;
}

/* Auth heading */
.auth-box h1 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 32px;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.7px;
    line-height: 1.15;
    margin-bottom: 5px;
}

.auth-box p.sub {
    font-size: 13.5px;
    color: var(--slate);
    margin-bottom: 28px;
    line-height: 1.5;
}

/* Alerts */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    border-radius: 9px;
    padding: 11px 13px;
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 1.45;
    border: 1px solid;
}

.alert-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.alert-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

/* Form labels */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--ink-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.form-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.form-row-between label {
    margin-bottom: 0;
}

.forgot-link {
    font-size: 12px;
    color: var(--amber-d);
    font-weight: 500;
    text-decoration: none;
}
.forgot-link:hover {
    text-decoration: underline;
}

/* Inputs */
.input-shell {
    position: relative;
    display: flex;
    align-items: center;
}

.input-shell .pre-icon {
    position: absolute;
    left: 13px;
    pointer-events: none;
    color: var(--silver);
    display: flex;
    align-items: center;
}

.input-shell input[type='email'],
.input-shell input[type='password'],
.input-shell input[type='text'] {
    width: 100%;
    height: 46px;
    padding: 0 44px;
    border: 1.5px solid var(--fog) !important;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    color: var(--ink) !important;
    background: var(--snow) !important;
    outline: none;
    transition:
        border-color 0.18s,
        box-shadow 0.18s,
        background 0.18s;
}

.input-shell input::placeholder {
    color: #b0bdd0 !important;
    font-weight: 300;
}

.input-shell input:hover {
    border-color: #c8d4e3 !important;
    background: var(--white) !important;
}

.input-shell input:focus {
    border-color: var(--amber) !important;
    background: var(--white) !important;
    box-shadow: 0 0 0 3.5px var(--amber-glow) !important;
}

.eye-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--silver);
    display: flex;
    align-items: center;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.15s;
}
.eye-btn:hover {
    color: var(--ink-muted);
}

/* Primary button */
.btn-hero {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 10px;
    background: var(--ink) !important;
    color: var(--white) !important;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition:
        transform 0.15s,
        box-shadow 0.15s;
    padding: 0 !important;
}

.btn-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.2s;
}

.btn-hero:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(10, 15, 30, 0.18);
    opacity: 1 !important;
}
.btn-hero:hover::before {
    opacity: 1;
}
.btn-hero:active {
    transform: translateY(0);
}

.btn-arrow {
    transition: transform 0.2s;
}
.btn-hero:hover .btn-arrow {
    transform: translateX(3px);
}

/* Divider + SSO */
.or-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
}
.or-divider::before,
.or-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--fog);
}
.or-divider span {
    font-size: 11.5px;
    color: var(--silver);
    font-weight: 500;
    letter-spacing: 0.04em;
}

.sso-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.btn-sso {
    height: 42px;
    border: 1.5px solid var(--fog);
    border-radius: 9px;
    background: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition:
        border-color 0.15s,
        box-shadow 0.15s,
        background 0.15s;
}
.btn-sso:hover {
    border-color: #c8d4e3;
    background: var(--snow);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Footer */
.left-footer {
    padding: 22px 48px;
    border-top: 1px solid var(--fog);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.signup-cta {
    font-size: 13px;
    color: var(--slate);
}
.signup-cta a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1.5px solid var(--amber);
    padding-bottom: 1px;
    transition: color 0.15s;
}
.signup-cta a:hover {
    color: var(--amber-d);
}

.status-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--snow);
    border: 1px solid var(--fog);
    border-radius: 20px;
    padding: 5px 11px 5px 8px;
    font-size: 11.5px;
    color: var(--slate);
    font-weight: 500;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 2.5px rgba(16, 185, 129, 0.2);
    animation: pulse-green 2s infinite;
}

/* =========================================================
   RIGHT PANEL — 60%
   ========================================================= */
.panel-right {
    flex: 1;
    background: var(--navy);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
}

.bg-glow-teal {
    position: absolute;
    top: -180px;
    right: -80px;
    width: 580px;
    height: 580px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.11) 0%, transparent 65%);
    pointer-events: none;
}

.bg-glow-amber {
    position: absolute;
    bottom: -80px;
    left: -160px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.07) 0%, transparent 65%);
    pointer-events: none;
}

.login-brand-panel {
    position: relative;
    z-index: 5;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px;
}
.login-brand-content {
    width: min(100%, 560px);
}
.login-brand-kicker {
    display: inline-flex;
    width: max-content;
    margin-bottom: 18px;
    padding: 5px 11px;
    border: 1px solid rgba(245, 158, 11, 0.32);
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.09);
    color: var(--amber);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}
.login-brand-content h2 {
    max-width: 12ch;
    color: #fff;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 48px;
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}
.login-brand-content > p {
    max-width: 56ch;
    color: rgba(219, 231, 248, 0.72);
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 30px;
}
.login-return-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
        rgba(6, 14, 29, 0.34);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}
.login-return-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.24);
    color: var(--amber);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.login-return-card h3 {
    color: rgba(255, 255, 255, 0.92);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}
.login-return-card p {
    color: rgba(219, 231, 248, 0.62);
    font-size: 13px;
    line-height: 1.6;
}
.login-panel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 18px;
}
.login-panel-grid div {
    min-height: 96px;
    padding: 18px;
    border: 1px solid rgba(245, 158, 11, 0.16);
    border-radius: 16px;
    background: rgba(8, 16, 31, 0.46);
}
.login-panel-grid span {
    display: block;
    color: rgba(147, 169, 204, 0.85);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.login-panel-grid strong {
    color: #f8c15c;
    font-size: 18px;
    line-height: 1.1;
}

/* Topbar */
.r-topbar {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    border-bottom: 1px solid var(--card-border);
}

.live-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}
.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2);
    animation: pulse-red 1.8s infinite;
}
.live-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f87171;
}

.r-stats {
    display: flex;
    align-items: center;
    gap: 20px;
}
.r-stat {
    text-align: right;
}
.r-stat-val {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1;
}
.r-stat-lbl {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 2px;
}
.r-divider {
    width: 1px;
    height: 28px;
    background: var(--card-border);
}

/* Feed */
.r-feed {
    flex: 1;
    position: relative;
    z-index: 5;
    padding: 24px 36px 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
    overflow: hidden;
}

.feed-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}
.feed-lbl {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.28);
}
.feed-chips {
    display: flex;
    gap: 6px;
}
.chip {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 3px 10px;
    cursor: pointer;
    transition: all 0.15s;
}
.chip.active {
    color: var(--amber);
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.25);
}

/* Feed cards */
.a-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--card-border);
    border-radius: 13px;
    padding: 14px 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition:
        background 0.18s,
        border-color 0.18s,
        transform 0.18s;
    animation: fadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.a-card::before {
    content: '';
    position: absolute;
    left: 0;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--amber);
    opacity: 0;
    transition: opacity 0.18s;
}

.a-card:hover {
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(3px);
}
.a-card:hover::before {
    opacity: 1;
}

.a-card:nth-child(2) {
    animation-delay: 0.07s;
}
.a-card:nth-child(3) {
    animation-delay: 0.14s;
}
.a-card:nth-child(4) {
    animation-delay: 0.21s;
}
.a-card:nth-child(5) {
    animation-delay: 0.28s;
}

.a-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
}

.a-body {
    flex: 1;
    min-width: 0;
}
.a-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 4px;
}
.a-cat {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.a-sep {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.18);
}
.a-time {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.27);
}
.a-title {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.45;
    letter-spacing: -0.1px;
}
.a-src {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.28);
    margin-top: 4px;
}
.a-right {
    flex-shrink: 0;
}

.trust {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 3px 9px;
    border-radius: 4px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
}
.trust.hi {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.2);
}
.trust.mid {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

/* Right hero strip */
.r-hero {
    position: relative;
    z-index: 5;
    padding: 24px 36px;
    border-top: 1px solid var(--card-border);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
}
.hero-line {
    width: 22px;
    height: 2px;
    background: var(--amber);
    border-radius: 2px;
}
.hero-eyebrow-lbl {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--amber);
}

.hero-copy h2 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 28px;
    font-weight: 400;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.4px;
    margin-bottom: 7px;
}
.hero-copy h2 em {
    font-style: italic;
    color: rgba(255, 255, 255, 0.52);
}
.hero-copy p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.36);
    line-height: 1.6;
    max-width: 290px;
}

.hero-stats {
    display: flex;
    gap: 26px;
    flex-shrink: 0;
}
.hs {
    text-align: right;
}
.hs-n {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 24px;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.4px;
}
.hs-n sup {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--amber);
    vertical-align: super;
}
.hs-l {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.24);
    margin-top: 3px;
}

/* Ticker */
.r-ticker {
    position: relative;
    z-index: 5;
    background: rgba(0, 0, 0, 0.32);
    border-top: 1px solid var(--card-border);
    height: 36px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    overflow: hidden;
}
.ticker-badge {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #06090f;
    flex-shrink: 0;
    background: var(--amber);
    border: 1px solid transparent;
    padding: 2px 8px;
    border-radius: 4px;
}
.ticker-track {
    display: flex;
    gap: 44px;
    animation: ticker-anim 32s linear infinite;
    white-space: nowrap;
}
.ticker-item {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}
.ticker-item::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}

/* Category/dot helpers */
.c-world {
    color: #60a5fa;
}
.d-world {
    background: #60a5fa;
}
.c-tech {
    color: #a78bfa;
}
.d-tech {
    background: #a78bfa;
}
.c-econ {
    color: #34d399;
}
.d-econ {
    background: #34d399;
}
.c-sci {
    color: #38bdf8;
}
.d-sci {
    background: #38bdf8;
}
.c-geo {
    color: #fb923c;
}
.d-geo {
    background: #fb923c;
}

/* =========================================================
   KEYFRAMES
   ========================================================= */
@keyframes pulse-green {
    0%,
    100% {
        box-shadow: 0 0 0 2.5px rgba(16, 185, 129, 0.2);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.07);
    }
}

@keyframes pulse-red {
    0%,
    100% {
        box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(248, 113, 113, 0.05);
    }
}

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

@keyframes ticker-anim {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 860px) {
    .panel-right {
        display: none;
    }
    .panel-left {
        width: 100%;
    }
}
