:root {
    --ivory: #fffaf1;
    --cream: #f8f0e3;
    --paper: rgba(255, 252, 246, .92);
    --gold: #b8863b;
    --gold-dark: #805921;
    --gold-soft: #d9b878;
    --ink: #3b3022;
    --muted: #796d5d;
    --border: rgba(178, 130, 58, .28);
    --shadow: 0 28px 80px rgba(82, 57, 23, .14);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--ivory);
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family:
        "Noto Sans Armenian",
        "Arial Unicode MS",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background:
        radial-gradient(
            circle at 75% 22%,
            rgba(255, 225, 159, .42),
            transparent 25rem
        ),
        radial-gradient(
            circle at 14% 82%,
            rgba(232, 190, 105, .18),
            transparent 27rem
        ),
        linear-gradient(
            135deg,
            #fffdf8 0%,
            #fbf3e7 50%,
            #f6ead8 100%
        );
}

a {
    color: inherit;
}

.club-page {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.club-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .42;
    background-image:
        linear-gradient(
            115deg,
            transparent 0 49.7%,
            rgba(185, 134, 58, .08) 50%,
            transparent 50.3%
        );
    background-size: 90px 90px;
}

.club-header {
    min-height: 90px;
    padding: 16px clamp(24px, 5vw, 78px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 252, 246, .74);
    backdrop-filter: blur(16px);
    position: relative;
    z-index: 20;
}

.brand {
    text-decoration: none;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    color: var(--gold-dark);
    line-height: 1;
}

.brand-main {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 3vw, 40px);
    letter-spacing: .12em;
}

.brand-sub {
    margin-top: 7px;
    font-size: 10px;
    letter-spacing: .55em;
    padding-left: .55em;
}

.header-link {
    text-decoration: none;
    border: 1px solid rgba(151, 103, 34, .55);
    padding: 12px 24px;
    border-radius: 999px;
    color: var(--gold-dark);
    font-size: 13px;
    letter-spacing: .06em;
    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;
}

.header-link:hover {
    background: var(--gold-dark);
    color: #fffaf0;
    transform: translateY(-1px);
}

.club-main {
    width: min(1400px, calc(100% - 48px));
    margin: 0 auto;
    padding: 52px 0 54px;
    position: relative;
    z-index: 2;
}

.club-copy {
    max-width: 880px;
    margin: 0 0 34px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: .22em;
    font-size: 12px;
}

.club-copy h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(46px, 6vw, 82px);
    line-height: 1.02;
    letter-spacing: -.025em;
    font-weight: 400;
    color: var(--gold-dark);
}

.club-copy h1 span {
    color: #c29048;
}

.lead {
    max-width: 720px;
    margin: 18px 0;
    font-size: clamp(15px, 1.5vw, 19px);
    line-height: 1.75;
    color: var(--muted);
}

.benefit-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    color: #966b30;
    font-size: 14px;
}

.benefit-line i {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold);
}

.club-stage {
    min-height: 670px;
    display: grid;
    grid-template-columns:
        minmax(440px, .95fr)
        minmax(420px, 1.05fr);
    gap: clamp(26px, 4vw, 64px);
    align-items: stretch;
}

.login-stage {
    min-height: 560px;
}

.form-card {
    align-self: center;
    width: min(100%, 680px);
    padding: clamp(28px, 4vw, 50px);
    border: 1px solid var(--border);
    border-radius: 26px;
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.95),
            rgba(255,249,238,.88)
        );
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    position: relative;
}

.login-card {
    max-width: 650px;
}

.form-card::before {
    content: "";
    position: absolute;
    inset: 9px;
    border-radius: 20px;
    pointer-events: none;
    border: 1px solid rgba(184, 134, 59, .12);
}

.art-deco-mark {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 13px;
    margin-bottom: 22px;
    color: var(--gold);
}

.art-deco-mark span {
    height: 1px;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(174, 125, 51, .75),
            transparent
        );
}

.art-deco-mark b {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--gold-soft);
    transform: rotate(45deg);
    font-family: Georgia, serif;
    font-weight: 400;
}

.art-deco-mark b::first-letter {
    transform: rotate(-45deg);
}

.form-heading {
    text-align: center;
    margin-bottom: 26px;
}

.form-heading p {
    color: var(--gold);
    letter-spacing: .2em;
    font-size: 11px;
    font-weight: 700;
    margin: 0 0 5px;
}

.form-heading h2,
.result h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--gold-dark);
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 400;
}

.club-form {
    display: grid;
    gap: 17px;
}

.field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.field {
    display: grid;
    gap: 8px;
    color: #554737;
    font-size: 13px;
}

.field > span {
    font-weight: 650;
}

.field input {
    width: 100%;
    min-height: 50px;
    padding: 12px 15px;
    border: 1px solid rgba(155, 112, 50, .26);
    border-radius: 11px;
    outline: none;
    color: var(--ink);
    background: rgba(255,255,255,.69);
    font: inherit;
    transition:
        box-shadow .18s ease,
        border-color .18s ease,
        background .18s ease;
}

.field input:focus {
    background: #fffefa;
    border-color: rgba(168, 113, 34, .66);
    box-shadow:
        0 0 0 4px rgba(190, 143, 71, .11);
}

.field small {
    color: #8b7b67;
    font-size: 11px;
}

.password-wrap {
    position: relative;
}

.password-wrap input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    width: 36px;
    height: 36px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #a1763d;
    cursor: pointer;
    font-size: 17px;
}

.check-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 12px;
    line-height: 1.5;
    color: #665947;
}

.check-row input {
    margin-top: 2px;
    width: 17px;
    height: 17px;
    accent-color: #a97838;
}

.primary-button {
    min-height: 56px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #9f702f;
    border-radius: 11px;
    padding: 14px 24px;
    cursor: pointer;
    text-decoration: none;
    font: inherit;
    font-weight: 750;
    letter-spacing: .08em;
    color: #423019;
    background:
        linear-gradient(
            110deg,
            #d7ac63,
            #f3d79a 45%,
            #c89342 100%
        );
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.7),
        0 8px 20px rgba(143, 95, 30, .16);
    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

.primary-button:hover {
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.7),
        0 12px 28px rgba(143, 95, 30, .23);
}

.switch-link {
    margin: 20px 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

.switch-link a {
    margin-left: 5px;
    color: var(--gold-dark);
    font-weight: 750;
    text-underline-offset: 4px;
}

.alert {
    margin-bottom: 18px;
    padding: 13px 15px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.55;
}

.alert-error {
    color: #7a3b2d;
    background: #fff1ec;
    border: 1px solid rgba(160, 80, 57, .2);
}

.result {
    text-align: center;
    position: relative;
}

.result-kicker {
    color: var(--gold);
    font-size: 11px;
    letter-spacing: .22em;
    font-weight: 800;
}

.result > p:not(.result-kicker) {
    margin: 16px auto;
    line-height: 1.7;
    color: var(--muted);
}

.club-card-number {
    margin: 25px 0;
    padding: 22px;
    border-radius: 17px;
    border: 1px solid rgba(164, 115, 43, .3);
    background:
        linear-gradient(
            135deg,
            #f9e6b7,
            #d7a956 50%,
            #f1d493
        );
    box-shadow: inset 0 0 22px rgba(255,255,255,.35);
}

.club-card-number small {
    display: block;
    margin-bottom: 8px;
    color: #6d4d23;
}

.club-card-number strong {
    font-family: Georgia, serif;
    display: block;
    font-size: clamp(23px, 4vw, 32px);
    letter-spacing: .08em;
    color: #4b351b;
}

.club-visual {
    min-height: 560px;
    position: relative;
    border-radius: 34px;
    overflow: hidden;
    border: 1px solid rgba(184, 134, 59, .17);

    /*
     * Put the reference visual here:
     * /home/www/public/club/assets/kosmeo-club-hero.webp
     */
    background-image:
        linear-gradient(
            90deg,
            rgba(255,251,244,.10),
            rgba(255,247,230,.02)
        ),
        url("/club/assets/kosmeo-club-hero.webp"),
        radial-gradient(
            circle at 63% 42%,
            #fff4d4,
            transparent 34%
        ),
        linear-gradient(
            145deg,
            #fffdf8,
            #f5e5c8
        );

    background-size:
        cover,
        cover,
        cover,
        cover;

    background-position:
        center,
        center,
        center,
        center;

    background-repeat: no-repeat;
    box-shadow: var(--shadow);
}

.club-visual::before,
.club-visual::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.club-visual::before {
    width: 420px;
    height: 420px;
    right: -150px;
    top: -120px;
    border: 1px solid rgba(174, 123, 46, .25);
    border-radius: 50%;
    box-shadow:
        0 0 0 28px rgba(173, 122, 46, .05),
        0 0 0 70px rgba(173, 122, 46, .035);
}

.club-visual::after {
    inset: 0;
    background:
        linear-gradient(
            120deg,
            rgba(255,255,255,.44),
            transparent 25% 74%,
            rgba(165,112,35,.09)
        );
}

.visual-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 70% 24%,
            rgba(255,255,255,.72),
            transparent 24%
        );
}

.visual-card {
    position: absolute;
    right: 6%;
    bottom: 5%;
    z-index: 4;
    width: min(260px, 44%);
    aspect-ratio: 1.58;
    border-radius: 14px;
    border: 1px solid #9c6c29;
    background:
        linear-gradient(
            135deg,
            rgba(219,178,102,.97),
            rgba(247,221,161,.98) 44%,
            rgba(169,116,42,.97)
        );
    box-shadow:
        0 18px 35px rgba(86, 55, 20, .22),
        inset 0 0 0 5px rgba(255,240,199,.22);
    color: #51381d;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: Georgia, serif;
}

.visual-card::before {
    content: "";
    position: absolute;
    inset: 9px;
    border-radius: 9px;
    border: 1px solid rgba(100, 62, 18, .35);
}

.visual-card span {
    font-size: clamp(18px, 2.5vw, 28px);
    letter-spacing: .1em;
}

.visual-card strong {
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 400;
}

.visual-card small {
    letter-spacing: .25em;
    font-size: 9px;
}

.visual-card b {
    margin-top: 11px;
    font-size: 21px;
    font-weight: 400;
}

.club-footer {
    width: min(1400px, calc(100% - 48px));
    margin: 0 auto 28px;
    padding: 20px 22px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 2;
}

.club-footer > div {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 20px;
}

.club-footer > div + div {
    border-left: 1px solid var(--border);
}

.club-footer b {
    color: var(--gold);
    font-size: 27px;
    font-family: Georgia, serif;
}

.club-footer span {
    display: grid;
    gap: 3px;
}

.club-footer strong {
    font-size: 12px;
    color: #6d573a;
}

.club-footer small {
    color: #978671;
    font-size: 10px;
}

.honeypot {
    position: absolute !important;
    left: -99999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 980px) {
    .club-stage {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .form-card {
        justify-self: center;
    }

    .club-visual {
        min-height: 450px;
    }
}

@media (max-width: 700px) {
    .club-header {
        min-height: 72px;
        padding: 12px 18px;
    }

    .brand-main {
        font-size: 25px;
    }

    .brand-sub {
        font-size: 8px;
    }

    .header-link {
        font-size: 10px;
        padding: 10px 14px;
    }

    .club-main {
        width: min(100% - 28px, 1400px);
        padding-top: 32px;
    }

    .club-copy h1 {
        font-size: clamp(40px, 13vw, 58px);
    }

    .club-copy {
        margin-bottom: 24px;
    }

    .benefit-line {
        gap: 8px;
        font-size: 11px;
    }

    .club-stage {
        gap: 20px;
    }

    .form-card {
        padding: 26px 18px;
        border-radius: 20px;
    }

    .field-grid {
        grid-template-columns: 1fr;
    }

    .club-visual {
        min-height: 315px;
        border-radius: 22px;
        background-position:
            center,
            64% center,
            center,
            center;
    }

    .club-footer {
        width: min(100% - 28px, 1400px);
        grid-template-columns: 1fr;
        padding: 10px 0;
    }

    .club-footer > div {
        padding: 12px 16px;
    }

    .club-footer > div + div {
        border-left: 0;
        border-top: 1px solid var(--border);
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
