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

:root {
    --bg: #050505;
    --bg-soft: #101010;
    --panel: rgba(15, 15, 15, 0.88);
    --panel-strong: rgba(18, 18, 18, 0.96);
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 78, 59, 0.4);
    --text: #f7f4ef;
    --muted: #afaaa3;
    --accent: #ff4e3b;
    --accent-strong: #ff2d1f;
    --accent-glow: rgba(255, 78, 59, 0.28);
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.45);
}

body {
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(255, 78, 59, 0.18), transparent 30%),
        radial-gradient(circle at 85% 12%, rgba(255, 132, 92, 0.12), transparent 24%),
        linear-gradient(135deg, #040404 0%, #090909 45%, #040404 100%);
    position: relative;
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto;
    pointer-events: none;
    z-index: 0;
}

body::before {
    top: -14rem;
    right: -8rem;
    width: 28rem;
    height: 28rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 78, 59, 0.22) 0%, rgba(255, 78, 59, 0) 68%);
    filter: blur(10px);
}

body::after {
    left: -10rem;
    bottom: -14rem;
    width: 32rem;
    height: 32rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 115, 91, 0.12) 0%, rgba(255, 115, 91, 0) 72%);
}

a {
    color: inherit;
}

.hero-shell,
.auth-shell {
    position: relative;
    z-index: 1;
}

.landing-page .hero-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem;
}

.hero-card {
    width: min(1160px, 100%);
    padding: clamp(2rem, 4vw, 4rem);
    border: 1px solid var(--line);
    border-radius: 32px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
        var(--panel);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    min-height: min(920px, calc(100vh - 4rem));
}

.hero-brand,
.hero-brand-auth {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.brand-mark {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    background:
        linear-gradient(145deg, rgba(255, 78, 59, 0.22), rgba(255, 78, 59, 0.05)),
        rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 78, 59, 0.25);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 40px rgba(255, 78, 59, 0.18);
}

.brand-logo-wrap {
    overflow: hidden;
    padding: 0;
}

.brand-logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.brand-kicker {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-subtitle {
    color: var(--muted);
    font-size: 0.92rem;
}

.hero-content {
    max-width: 680px;
}

.hero-content-solo {
    width: 100%;
    max-width: 100%;
    margin-top: auto;
}

.eyebrow {
    color: #ff8b7a;
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

h1,
h2 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1;
}

h1 {
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    letter-spacing: -0.05em;
    margin-bottom: 1.15rem;
    text-wrap: balance;
    max-width: 12ch;
}

.hero-description,
.auth-card-head p {
    color: var(--muted);
    line-height: 1.75;
    max-width: 60ch;
}

.landing-page .hero-content .eyebrow,
.landing-page .hero-content h1,
.landing-page .hero-content .hero-description,
.landing-page .hero-content .hero-actions {
    max-width: 760px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0.95rem 1.5rem;
    border-radius: 16px;
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

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

.btn-primary {
    color: #fff8f5;
    background: linear-gradient(135deg, #ff654f 0%, #ff2d1f 85%);
    box-shadow: 0 18px 38px rgba(255, 78, 59, 0.28);
}

.btn-primary:hover {
    box-shadow: 0 20px 42px rgba(255, 78, 59, 0.36);
}

.btn-secondary {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
}

.btn-secondary:hover {
    border-color: var(--line-strong);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.btn-block {
    width: 100%;
}

.auth-page .auth-shell {
    min-height: 100vh;
    width: min(1160px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.82fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
    padding: clamp(1.5rem, 4vw, 3rem);
}

.auth-panel {
    position: relative;
    z-index: 1;
}

.auth-panel-intro {
    padding: clamp(1rem, 3vw, 3rem);
}

.auth-panel-intro h1 {
    max-width: 11ch;
    font-size: clamp(2.6rem, 5vw, 4.4rem);
}

.auth-panel-form {
    display: flex;
    justify-content: flex-start;
}

.auth-card {
    width: min(480px, 100%);
    padding: clamp(1.6rem, 3vw, 2.4rem);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
        var(--panel-strong);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.auth-card-head {
    margin-bottom: 1.6rem;
}

.auth-card-head h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.auth-form {
    display: grid;
    gap: 1rem;
}

.field {
    display: grid;
    gap: 0.55rem;
}

.field span {
    color: #e4dfd8;
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 700;
}

.field input {
    width: 100%;
    min-height: 56px;
    padding: 0 1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.field input::placeholder {
    color: #8e8983;
}

.field input:focus {
    outline: none;
    border-color: rgba(255, 78, 59, 0.45);
    box-shadow: 0 0 0 4px rgba(255, 78, 59, 0.12);
    background: rgba(255, 255, 255, 0.045);
}

.auth-alert {
    margin-bottom: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 78, 59, 0.28);
    background: rgba(255, 78, 59, 0.08);
    color: #ffd5cf;
    font-size: 0.94rem;
    line-height: 1.5;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid #1f1f1f;
}

.nav a {
    color: #bbbbbb;
    text-decoration: none;
    margin-left: 20px;
}

.nav a:hover {
    color: var(--accent);
}

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

    .hero-card {
        gap: 2rem;
        min-height: auto;
    }

    .auth-panel-intro {
        padding: 0;
    }
}

@media (max-width: 640px) {
    .landing-page .hero-shell,
    .auth-page .auth-shell {
        padding: 1rem;
    }

    .hero-card,
    .auth-card {
        border-radius: 24px;
    }

    h1 {
        font-size: clamp(2.3rem, 12vw, 3.5rem);
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .brand-mark {
        width: 60px;
        height: 60px;
        border-radius: 18px;
    }
}
