@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --ink: #171412;
    --muted: #766d66;
    --paper: #fffdf9;
    --warm: #f1ebe4;
    --line: #e4d9d1;
    --accent: #cf5419;
    --accent-dark: #92330f;
    --green: #2f8a68;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: 'Inter', Arial, sans-serif;
    background:
        radial-gradient(circle at 12% 10%, rgba(207, 84, 25, .16), transparent 28%),
        radial-gradient(circle at 92% 18%, rgba(23, 20, 18, .14), transparent 30%),
        var(--warm);
}

.login-page {
    min-height: 100vh;
    width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: minmax(520px, .95fr) minmax(520px, 1.05fr);
    gap: 0;
    padding: 0;
    align-items: start;
}

.login-hero,
.auth-card {
    min-height: 100vh;
}

.login-hero {
    position: relative;
    overflow: hidden;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(34px, 5vw, 72px);
    color: #fff;
    background:
        radial-gradient(circle at 88% 12%, rgba(207, 84, 25, .42) 0 150px, transparent 152px),
        linear-gradient(145deg, #141311, #2b1710 78%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, transparent 42%, rgba(255, 255, 255, .05) 42% 50%, transparent 50%),
        radial-gradient(circle at 18% 82%, rgba(207, 84, 25, .2), transparent 28%);
}

.member-badge,
.logo-card,
.login-hero h1,
.login-hero p,
.hero-notes {
    position: relative;
}

.member-badge {
    width: fit-content;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .78);
    padding: 10px 18px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 12px;
    font-weight: 900;
}

.logo-card {
    margin-top: 36px;
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: #fff;
    color: var(--accent);
    font-size: 30px;
    font-weight: 900;
    box-shadow: 0 22px 50px rgba(0, 0, 0, .24);
}

.login-hero h1 {
    max-width: 760px;
    margin: 42px 0 16px;
    font-size: clamp(48px, 5vw, 76px);
    line-height: 1.02;
    letter-spacing: 0;
}

.login-hero p {
    max-width: 680px;
    color: rgba(255, 255, 255, .68);
    font-size: clamp(17px, 1.35vw, 22px);
    line-height: 1.7;
}

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

.hero-notes span {
    min-height: 104px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    padding: 18px;
    background: rgba(255, 255, 255, .07);
    color: rgba(255, 255, 255, .7);
    line-height: 1.45;
}

.hero-notes b {
    display: block;
    margin-bottom: 6px;
    color: #fff;
    font-size: 20px;
}

.auth-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(circle at 88% 12%, rgba(207, 84, 25, .08), transparent 28%),
        linear-gradient(180deg, rgba(255, 253, 249, .96), rgba(246, 239, 232, .98));
    padding: clamp(42px, 5vw, 78px) clamp(56px, 7vw, 118px);
}

.auth-layout {
    width: min(100%, 760px);
    margin: 0 auto;
    display: grid;
    gap: 34px;
}

.auth-main {
    min-width: 0;
}

.auth-card-head {
    width: 100%;
    margin-bottom: 26px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 900;
    font-size: 12px;
}

.auth-card h2 {
    margin: 0;
    font-size: clamp(36px, 3.6vw, 58px);
    line-height: 1.05;
}

.auth-card-head p:not(.eyebrow) {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
}

.auth-switch {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    margin-bottom: 24px;
}

.auth-switch-button {
    border: 0;
    border-radius: 13px;
    padding: 14px 18px;
    background: transparent;
    color: #6f665f;
    cursor: pointer;
    font-weight: 900;
}

.auth-switch-button.active {
    background: #171412;
    color: #fff;
}

.auth-panel {
    display: none;
    width: 100%;
}

.auth-panel.active {
    display: block;
}

form { margin: 0; }

label {
    display: block;
    color: #5f564f;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

input {
    width: 100%;
    height: 58px;
    margin-top: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
    color: var(--ink);
    padding: 0 18px;
    font: 600 16px 'Inter', Arial, sans-serif;
    outline: none;
}

input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(207, 84, 25, .12);
}

.primary-button,
.secondary-button {
    width: 100%;
    min-height: 58px;
    border: 0;
    border-radius: 16px;
    padding: 15px 18px;
    color: #fff;
    background: var(--accent);
    box-shadow: 0 14px 30px rgba(207, 84, 25, .26);
    font: 900 16px 'Inter', Arial, sans-serif;
    cursor: pointer;
}

.secondary-button {
    background: #171412;
    box-shadow: none;
}

.verify-form {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.alert-box {
    width: 100%;
    border-radius: 16px;
    padding: 13px 16px;
    margin-bottom: 18px;
    font-weight: 800;
    line-height: 1.5;
}

.alert-box.error {
    background: #fde8e8;
    color: #9b1c22;
    border: 1px solid #f3c5c5;
}

.alert-box.success {
    background: #e5f5ee;
    color: var(--green);
    border: 1px solid #bee6d5;
}

.auth-context {
    display: block;
    min-width: 0;
    border-top: 1px solid var(--line);
    padding-top: 28px;
}

.auth-context h3 {
    margin: 0 0 18px;
    max-width: 620px;
    font-size: clamp(24px, 2vw, 34px);
    line-height: 1.12;
}

.context-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.context-list div {
    min-height: 132px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 253, 249, .62);
    padding: 16px;
}

.context-list strong,
.context-list span {
    display: block;
}

.context-list strong {
    font-size: 16px;
    margin-bottom: 7px;
}

.context-list span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.context-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 30px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.context-footer strong {
    color: var(--accent-dark);
    white-space: nowrap;
}

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

    .login-hero,
    .auth-card {
        position: relative;
        height: auto;
        min-height: auto;
    }
}

@media (max-width: 720px) {
    .login-page {
        padding: 0;
        gap: 0;
    }

    .login-hero,
    .auth-card {
        padding: 28px;
    }

    .login-hero h1 {
        font-size: 42px;
    }

    .hero-notes,
    .auth-switch {
        grid-template-columns: 1fr;
    }

    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-context {
        display: none;
    }
}
