:root {
    --primary: #f59e0b;
    --primary-dark: #d97706;
    --dark: #111827;
    --text: #344054;
    --muted: #667085;
    --border: #e4e7ec;
    --surface: #ffffff;
    --background: #f8fafc;
    --success: #16a34a;
    --radius: 14px;
    --shadow:
        0 10px 35px rgba(15, 23, 42, 0.07);
    --transition: 0.22s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    background:
        linear-gradient(
            135deg,
            #f8fafc 0%,
            #ffffff 55%,
            #fffaf2 100%
        );

    color: var(--text);

    font-family:
        Inter,
        Arial,
        sans-serif;
}

button,
a {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}


/* ==========================================================
   LOADER
========================================================== */

.signup-loader {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    gap: 12px;

    background: #ffffff;

    transition: opacity 0.3s ease;
}

.signup-loader.hidden {
    opacity: 0;

    pointer-events: none;
}

.loader-spinner {
    width: 34px;
    height: 34px;

    border: 3px solid #e5e7eb;

    border-top-color: var(--primary);

    border-radius: 50%;

    animation:
        signupSpin 0.8s linear infinite;
}

.signup-loader p {
    color: var(--muted);

    font-size: 12px;
}

@keyframes signupSpin {

    to {
        transform: rotate(360deg);
    }

}


/* ==========================================================
   PAGE
========================================================== */

.signup-page {
    min-height: 100vh;

    display: flex;

    flex-direction: column;
}


/* ==========================================================
   HEADER
========================================================== */

.signup-header {
    min-height: 76px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 6%;

    border-bottom: 1px solid
        rgba(228, 231, 236, 0.8);

    background:
        rgba(255, 255, 255, 0.88);

    backdrop-filter: blur(12px);
}

.signup-logo {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    color: var(--dark);

    font-size: 20px;

    font-weight: 850;

    letter-spacing: -0.6px;
}

.logo-mark {
    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 9px;

    background: var(--primary);

    color: #111827;

    font-size: 16px;

    font-weight: 900;
}

.header-login {
    display: flex;

    align-items: center;

    gap: 8px;

    color: var(--muted);

    font-size: 12px;
}

.header-login a {
    color: var(--primary-dark);

    font-weight: 750;
}

.header-login a:hover {
    text-decoration: underline;
}


/* ==========================================================
   MAIN CONTENT
========================================================== */

.signup-content {
    width: min(
        100% - 30px,
        930px
    );

    margin: auto;

    padding: 65px 0 45px;
}

.signup-introduction {
    max-width: 650px;

    margin: 0 auto 35px;

    text-align: center;
}

.eyebrow {
    display: inline-block;

    margin-bottom: 11px;

    color: var(--primary-dark);

    font-size: 10px;

    font-weight: 850;

    letter-spacing: 1.5px;
}

.signup-introduction h1 {
    margin-bottom: 13px;

    color: var(--dark);

    font-size: clamp(
        29px,
        5vw,
        45px
    );

    line-height: 1.08;

    letter-spacing: -1.5px;
}

.signup-introduction p {
    max-width: 590px;

    margin: auto;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.7;
}


/* ==========================================================
   ACCOUNT CARDS
========================================================== */

.account-choice-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;
}

.account-choice {
    position: relative;

    min-height: 250px;

    display: flex;

    align-items: flex-start;

    gap: 18px;

    padding: 28px;

    overflow: hidden;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    background: var(--surface);

    color: var(--text);

    text-align: left;

    box-shadow: var(--shadow);

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.account-choice::after {
    content: "";

    position: absolute;

    width: 150px;
    height: 150px;

    right: -70px;
    bottom: -75px;

    border-radius: 50%;

    background:
        rgba(245, 158, 11, 0.07);

    transition:
        transform var(--transition);
}

.account-choice:hover {
    transform: translateY(-5px);

    border-color: #fbbf24;

    box-shadow:
        0 18px 45px
        rgba(15, 23, 42, 0.11);
}

.account-choice:hover::after {
    transform: scale(1.25);
}

.account-choice.selected {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px
        rgba(245, 158, 11, 0.12),
        var(--shadow);
}

.choice-icon {
    width: 58px;
    height: 58px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 14px;

    font-size: 26px;
}

.buyer-icon {
    background: #fff7ed;
}

.seller-icon {
    background: #eff6ff;
}

.choice-content {
    position: relative;

    z-index: 2;

    padding-right: 15px;
}

.choice-label {
    display: block;

    margin-bottom: 6px;

    color: var(--muted);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.1px;
}

.choice-content h2 {
    margin-bottom: 9px;

    color: var(--dark);

    font-size: 20px;

    letter-spacing: -0.4px;
}

.choice-content p {
    color: var(--muted);

    font-size: 12px;

    line-height: 1.7;
}

.choice-arrow {
    position: absolute;

    right: 23px;
    bottom: 22px;

    z-index: 3;

    color: var(--primary-dark);

    font-size: 20px;

    font-weight: 700;

    transition:
        transform var(--transition);
}

.account-choice:hover .choice-arrow {
    transform: translateX(5px);
}


/* ==========================================================
   TRUST
========================================================== */

.signup-trust {
    display: flex;

    align-items: center;

    justify-content: center;

    flex-wrap: wrap;

    gap: 20px;

    margin-top: 27px;
}

.trust-item {
    display: flex;

    align-items: center;

    gap: 7px;

    color: var(--muted);

    font-size: 10px;
}

.trust-item span {
    width: 18px;
    height: 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #ecfdf3;

    color: var(--success);

    font-size: 10px;

    font-weight: 800;
}


/* ==========================================================
   FOOTER
========================================================== */

.signup-footer {
    min-height: 72px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 0 6%;

    margin-top: auto;

    border-top: 1px solid var(--border);

    background: #ffffff;

    color: #98a2b3;

    font-size: 10px;
}

.signup-footer div {
    display: flex;

    gap: 18px;
}

.signup-footer a:hover {
    color: var(--dark);
}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 700px) {

    .signup-header {
        min-height: 68px;

        padding: 0 18px;
    }

    .header-login span {
        display: none;
    }

    .signup-content {
        padding-top: 45px;
    }

    .account-choice-grid {
        grid-template-columns: 1fr;
    }

    .account-choice {
        min-height: 205px;

        padding: 23px;
    }

    .signup-trust {
        align-items: flex-start;

        flex-direction: column;

        gap: 11px;

        padding-left: 8px;
    }

    .signup-footer {
        align-items: flex-start;

        flex-direction: column;

        justify-content: center;

        padding: 18px;

        gap: 10px;
    }

}

