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

:root {
    --black: #050403;
    --black-soft: #0c0b09;
    --gold: #f5aa20;
    --gold-light: #ffc35a;
    --gold-deep: #a96b12;
    --white: #fffaf2;
    --muted: #c4beb6;
    --muted-dark: #8c857c;
    --line: rgba(255, 255, 255, 0.14);
    --gold-line: rgba(245, 170, 32, 0.45);
    --serif: "Playfair Display", Georgia, serif;
    --sans: "Inter", Arial, sans-serif;
}

body {
    min-height: 100vh;
    overflow: auto;
    color: var(--white);
    font-family: var(--sans);
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.74) 39%, rgba(0, 0, 0, 0.42) 63%, rgba(0, 0, 0, 0.68) 100%),
        url("../frontpageBackground.png") center right / cover no-repeat,
        var(--black);
}

body.modal-open {
    overflow: hidden;
}

button,
input,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: 100%;
    min-height: 100vh;
    position: relative;
    display: grid;
    grid-template-columns: minmax(520px, 0.95fr) minmax(520px, 1.05fr);
    overflow: hidden;
}

.container::before {
    content: "";
    position: absolute;
    top: -18vh;
    left: 37.3%;
    width: 34vw;
    height: 136vh;
    border-left: 1px solid rgba(245, 170, 32, 0.66);
    border-radius: 50%;
    transform: rotate(2deg);
    pointer-events: none;
    z-index: 2;
}

.container::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 49% 15%, rgba(245, 170, 32, 0.18), transparent 2px),
        radial-gradient(circle at 70% 9%, rgba(245, 170, 32, 0.24), transparent 1px),
        radial-gradient(circle at 24% 55%, rgba(245, 170, 32, 0.16), transparent 1px);
    pointer-events: none;
    z-index: 1;
}

.left-section {
    min-height: 100vh;
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    padding: clamp(34px, 4vw, 54px);
    background: linear-gradient(90deg, rgba(6, 6, 5, 0.98), rgba(6, 6, 5, 0.74) 76%, rgba(6, 6, 5, 0));
}

.left-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 11%, rgba(245, 170, 32, 0.08), transparent 18%);
    pointer-events: none;
}

.logo {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-mark {
    width: 56px;
    height: 56px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
    object-fit: cover;
    object-position: center;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

.logo h2 {
    font-family: var(--serif);
    font-size: 35px;
    font-weight: 500;
    letter-spacing: 0;
}

.hero {
    position: relative;
    z-index: 1;
    width: min(100%, 710px);
    margin-top: clamp(70px, 11vh, 116px);
}

.platform-pill {
    width: fit-content;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 34px;
    padding: 0 20px;
    color: #f9d08a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    font-size: 15px;
    font-weight: 800;
}

.platform-pill i {
    color: var(--gold-light);
}

.line {
    display: none;
}

.hero h1 {
    max-width: 650px;
    margin-bottom: 22px;
    font-family: var(--serif);
    font-size: clamp(4rem, 6.1vw, 6.35rem);
    line-height: 1.02;
    font-weight: 500;
    letter-spacing: 0;
}

.hero h1::first-line {
    color: var(--white);
}

.hero h1 {
    color: var(--white);
}

.hero h1::selection,
.form-container h1::selection {
    background: var(--gold);
    color: #1a1004;
}

.hero h1 {
    text-wrap: balance;
}

.hero h1 br,
.hero p br {
    display: none;
}

.hero h1 {
    background: linear-gradient(180deg, var(--white) 0 47%, var(--gold-light) 48% 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    max-width: 620px;
    margin-bottom: 46px;
    color: var(--muted);
    font-size: 20px;
    line-height: 1.6;
}

.hero ul {
    width: min(100%, 650px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 48px;
    list-style: none;
}

.hero ul li {
    min-height: 82px;
    display: grid;
    grid-template-columns: 64px 1fr;
    grid-template-areas:
        "icon title"
        "icon text";
    column-gap: 18px;
    align-items: center;
}

.hero ul li span {
    grid-area: icon;
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    color: var(--gold-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.055);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    font-size: 24px;
}

.hero ul li strong {
    grid-area: title;
    align-self: end;
    color: #ffd79a;
    font-family: var(--serif);
    font-size: 21px;
    font-weight: 600;
}

.hero ul li small {
    grid-area: text;
    align-self: start;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.45;
}

.stats {
    display: none;
}

.right-section {
    min-height: 100vh;
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: clamp(34px, 4vw, 64px);
}

.form-container {
    width: min(100%, 500px);
    max-height: calc(100vh - 70px);
    overflow: auto;
    padding: 40px 42px 34px;
    border: 1px solid rgba(245, 170, 32, 0.42);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(12, 12, 11, 0.86), rgba(7, 7, 6, 0.84));
    box-shadow: 0 34px 100px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(18px);
    scrollbar-width: thin;
    scrollbar-color: rgba(245, 170, 32, 0.45) transparent;
}

.form-container::-webkit-scrollbar {
    width: 8px;
}

.form-container::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(245, 170, 32, 0.45);
}

.form-eyebrow {
    margin-bottom: 9px;
    color: var(--gold-light);
    font-size: 18px;
    font-weight: 700;
}

.form-container h1 {
    margin-bottom: 14px;
    color: var(--white);
    font-family: var(--serif);
    font-size: clamp(2.45rem, 4vw, 3rem);
    line-height: 1;
    font-weight: 500;
}

.subtitle {
    max-width: 340px;
    margin-bottom: 30px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.45;
}

.account-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-bottom: 30px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.055);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.24);
}

.account-toggle button {
    min-height: 48px;
    color: #e7e2dc;
    border: 0;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.account-toggle button:hover,
.account-toggle button:focus-visible {
    color: var(--white);
}

.account-toggle button.active {
    color: #110a02;
    background: linear-gradient(180deg, var(--gold-light), var(--gold));
    box-shadow: 0 8px 20px rgba(245, 170, 32, 0.25);
}

.tabs {
    display: none;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 9px;
    color: #f0ece6;
    font-size: 13px;
    font-weight: 800;
}

.password-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.password-row a {
    margin-bottom: 9px;
    color: var(--gold-light);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.password-row a:hover,
.password-row a:focus-visible {
    text-decoration: underline;
}

input,
select {
    width: 100%;
    height: 56px;
    margin-bottom: 24px;
    padding: 0 16px;
    color: var(--white);
    outline: none;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.04);
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

input::placeholder {
    color: #9b958d;
}

input:focus,
select:focus {
    border-color: rgba(245, 170, 32, 0.72);
    background-color: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 4px rgba(245, 170, 32, 0.09);
}

.password-field {
    position: relative;
    margin-bottom: 24px;
}

.password-field input {
    margin-bottom: 0;
    padding-right: 52px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    z-index: 2;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: var(--muted);
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
    transition: color 180ms ease, background 180ms ease;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    color: var(--gold-light);
    background: rgba(245, 170, 32, 0.1);
    outline: none;
}

select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--gold-light) 50%),
        linear-gradient(135deg, var(--gold-light) 50%, transparent 50%);
    background-position: calc(100% - 22px) 24px, calc(100% - 16px) 24px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

select option {
    color: #fff;
    background: #111;
}

.signup-field {
    display: flex;
    flex-direction: column;
}

.is-hidden {
    display: none;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: -4px 0 24px;
}

.checkbox input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--gold);
}

.checkbox span {
    color: var(--muted);
    font-size: 15px;
}

.main-btn,
.secondary-btn {
    width: 100%;
    height: 54px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.main-btn {
    color: #120a02;
    border: 0;
    background: linear-gradient(180deg, var(--gold-light), var(--gold));
    box-shadow: 0 16px 32px rgba(245, 170, 32, 0.22);
}

.main-btn:hover,
.main-btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(245, 170, 32, 0.3);
}

.main-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.divider {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 28px 0 20px;
    color: #d8d0c7;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.18);
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-login-bottom {
    margin-bottom: 0;
}

.social-btn {
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    color: #f9f5ef;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.social-btn:hover,
.social-btn:focus-visible {
    border-color: rgba(245, 170, 32, 0.58);
    background: rgba(245, 170, 32, 0.07);
    transform: translateY(-2px);
}

.social-mark {
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 800;
}

.google-mark {
    color: #111;
    background: #fff;
}

.facebook-mark {
    color: #fff;
    background: #1877f2;
    font-family: Arial, sans-serif;
    font-size: 20px;
}

.auth-prompt {
    margin-top: 24px;
    color: var(--muted);
    text-align: center;
    font-size: 15px;
}

.auth-prompt button {
    color: var(--gold-light);
    border: 0;
    background: transparent;
    cursor: pointer;
    font-weight: 800;
}

.auth-prompt button:hover,
.auth-prompt button:focus-visible {
    text-decoration: underline;
}

.vendor-type-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 22px;
}

.vendor-type-option {
    min-height: 112px;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 0;
    padding: 15px;
    color: var(--muted);
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.vendor-type-option:hover {
    border-color: rgba(245, 170, 32, 0.56);
    transform: translateY(-1px);
}

.vendor-type-option:has(input:checked) {
    border-color: rgba(245, 170, 32, 0.72);
    background: rgba(245, 170, 32, 0.09);
}

.vendor-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.vendor-type-indicator {
    width: 22px;
    min-width: 22px;
    height: 22px;
    margin-top: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.26);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
}

.vendor-type-indicator::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 180ms ease, transform 180ms ease;
}

.vendor-type-option input[type="radio"]:checked + .vendor-type-indicator {
    border-color: var(--gold);
}

.vendor-type-option input[type="radio"]:checked + .vendor-type-indicator::after {
    opacity: 1;
    transform: scale(1);
}

.vendor-type-copy {
    min-width: 0;
}

.vendor-type-copy strong,
.vendor-type-copy small {
    display: block;
}

.vendor-type-copy strong {
    margin-bottom: 6px;
    color: #fff;
    font-size: 15px;
    line-height: 1.2;
}

.vendor-type-copy small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.vendor-type-option:has(input:checked) .vendor-type-copy strong {
    color: var(--gold-light);
}

.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
}

.terms-check input {
    width: 17px;
    min-width: 17px;
    height: 17px;
    margin: 2px 0 0;
    accent-color: var(--gold);
}

.secondary-btn {
    color: #f5f5f5;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
}

.secondary-btn:hover,
.secondary-btn:focus-visible {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.terms-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
}

.terms-modal.show {
    display: flex;
}

.terms-dialog {
    width: min(920px, 100%);
    max-height: 92vh;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 24px;
    border: 1px solid rgba(245, 170, 32, 0.45);
    border-radius: 20px;
    background: rgba(8, 7, 6, 0.98);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
}

.terms-dialog h2 {
    padding-right: 44px;
    color: var(--gold-light);
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 600;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.terms-image-wrap {
    min-height: 0;
    overflow: auto;
    border: 1px solid rgba(245, 170, 32, 0.18);
    border-radius: 14px;
    background: #000;
}

.terms-image-wrap img {
    display: block;
    width: 100%;
    height: auto;
}

.terms-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

#signupForm {
    display: none;
}

#signupForm form {
    display: flex;
    flex-direction: column;
}

#signupForm .form-container,
#signupForm {
    scrollbar-width: thin;
}

@media (max-width: 1320px) {
    .container {
        grid-template-columns: minmax(430px, 0.9fr) minmax(460px, 1fr);
    }

    .hero h1 {
        font-size: clamp(3.55rem, 5.6vw, 5.25rem);
    }

    .hero ul {
        gap: 22px 28px;
    }
}

@media (max-width: 1080px) {
    body {
        background:
            linear-gradient(180deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.8)),
            url("../frontpageBackground.png") center right / cover no-repeat,
            var(--black);
    }

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

    .container::before {
        display: none;
    }

    .left-section {
        min-height: auto;
        background: linear-gradient(180deg, rgba(6, 6, 5, 0.97), rgba(6, 6, 5, 0.72));
    }

    .hero {
        margin-top: 68px;
    }

    .right-section {
        min-height: auto;
        justify-content: center;
        padding-top: 16px;
    }

    .form-container {
        max-height: none;
    }
}

@media (max-width: 700px) {
    .left-section,
    .right-section {
        padding: 24px;
    }

    .logo-mark {
        width: 48px;
        height: 48px;
        font-size: 28px;
        border-radius: 12px;
    }

    .logo h2 {
        font-size: 30px;
    }

    .hero {
        margin-top: 56px;
    }

    .platform-pill {
        min-height: 42px;
        margin-bottom: 26px;
        padding: 0 15px;
        font-size: 13px;
    }

    .hero h1 {
        font-size: clamp(3rem, 13vw, 4.3rem);
    }

    .hero p {
        margin-bottom: 34px;
        font-size: 17px;
    }

    .hero ul {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .form-container {
        padding: 30px 24px;
        border-radius: 20px;
    }

    .subtitle {
        font-size: 15px;
    }

    .vendor-type-options {
        grid-template-columns: 1fr;
    }

    .terms-modal {
        padding: 14px;
    }

    .terms-dialog {
        max-height: 94vh;
        padding: 16px;
        border-radius: 16px;
    }

    .terms-dialog h2 {
        font-size: 22px;
    }

    .terms-actions {
        grid-template-columns: 1fr;
    }
}
