/*
 * PayStaff Signup page template styles
 * Scoped to .signup-page / .signup-hero / .signup-form-panel etc.
 */

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

:root {
    --primary: #1f5cff;
    --primary-dark: #1546d8;
    --navy: #071a3d;
    --text: #101828;
    --muted: #667085;
    --border: #d9dee8;
    --soft-blue: #eef4ff;
    --soft-green: #eafbf5;
    --green: #0ebf91;
    --white: #ffffff;
}

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

    display: grid;
    grid-template-columns: minmax(480px, 1fr) minmax(580px, 1.08fr);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: #ffffff;
    color: var(--text);
}

.signup-page button,
.signup-page input {
    font: inherit;
}

.signup-page button {
    cursor: pointer;
}

.signup-page a {
    color: var(--primary);
    text-decoration: none;
}

.signup-page a:hover {
    text-decoration: underline;
}

/* =========================================================
   LEFT HERO
========================================================= */

.signup-hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;

    color: #ffffff;

    background:
        linear-gradient(
            90deg,
            rgba(4, 19, 52, 0.94) 0%,
            rgba(5, 28, 75, 0.81) 47%,
            rgba(8, 38, 83, 0.34) 100%
        ),
        url("https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=1800&q=90");

    background-size: cover;
    background-position: center;
    transition:
        background-image 0.5s ease,
        opacity 0.3s ease;
}

.signup-hero::after {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(3, 15, 38, 0.1) 0%,
            rgba(3, 15, 38, 0.12) 45%,
            rgba(3, 15, 38, 0.62) 100%
        );

    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;

    min-height: 100vh;
    padding: 46px 7% 52px;

    display: flex;
    flex-direction: column;
}

/* Logo */

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;

    width: fit-content;
    color: #ffffff;
}

.brand-logo {
    max-width: 270px;
}

.brand-mark {
    width: 35px;
    height: 35px;

    border-radius: 10px;

    display: grid;
    place-items: center;

    background: linear-gradient(135deg, #70a1ff, #1f5cff);

    font-size: 22px;
    font-weight: 800;
}

.brand-name {
    font-size: 27px;
    font-weight: 750;
    letter-spacing: -0.7px;
}

/* Hero main */

.hero-main {
    margin-top: auto;
    margin-bottom: auto;

    max-width: 650px;
    padding: 70px 0 40px;
}

.hero-eyebrow {
    margin-bottom: 19px;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 8px 13px;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(10px);

    color: rgba(255, 255, 255, 0.95);

    font-size: 13px;
    font-weight: 650;
}

.hero-title {
    max-width: 620px;

    font-size: clamp(46px, 5vw, 76px);
    line-height: 0.99;

    letter-spacing: -3.5px;
    font-weight: 760;
}

.hero-title .accent {
    color: #67a0ff;
}

.hero-copy {
    max-width: 520px;
    margin-top: 27px;

    font-size: 18px;
    line-height: 1.7;

    color: rgba(255, 255, 255, 0.86);
}

/* Hero benefits */

.hero-benefits {
    margin-top: 37px;

    display: grid;
    gap: 20px;

    max-width: 520px;
}

.hero-benefit {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 16px;
    align-items: center;
}

.hero-benefit-icon {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: rgba(61, 111, 255, 0.23);
    border: 1px solid rgba(120, 161, 255, 0.18);

    color: #ffffff;
    font-size: 20px;

    backdrop-filter: blur(10px);
}

.hero-benefit strong {
    display: block;
    margin-bottom: 3px;

    font-size: 15px;
    font-weight: 700;
}

.hero-benefit p {
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.74);
}

/* Trust stat */

.hero-trust {
    margin-top: 32px;

    font-size: 14px;
    line-height: 1.7;

    color: rgba(255, 255, 255, 0.7);
}

.hero-trust strong {
    color: #78a9ff;
    font-size: 16px;
}

/* =========================================================
   RIGHT FORM AREA
========================================================= */

.signup-form-panel {
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 58px 8%;

    background: #ffffff;
}

.signup-form-wrap {
    width: 100%;
    max-width: 720px;
}

.form-header {
    margin-bottom: 31px;
}

.form-title {
    font-size: 37px;
    line-height: 1.1;
    letter-spacing: -1.6px;
    font-weight: 760;
}

.form-login {
    margin-top: 9px;

    color: var(--muted);
    font-size: 15px;
}

/* =========================================================
   ACCOUNT TYPE SELECTOR
========================================================= */

.account-type-heading {
    margin-bottom: 12px;

    font-size: 15px;
    font-weight: 650;
}

.account-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;

    margin-bottom: 27px;
}

.account-type {
    position: relative;

    min-height: 118px;

    display: grid;
    grid-template-columns: 52px 1fr 20px;
    align-items: center;
    gap: 15px;

    padding: 19px;

    border: 1.5px solid var(--border);
    border-radius: 12px;

    background: #ffffff;

    text-align: left;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}

.account-type:hover {
    border-color: #aab9d6;
    transform: translateY(-1px);

}
.account-type:not(.active):hover .account-info strong, 
.account-type:not(.active):hover .account-info span {
    color: #fff;
}

.account-type.active {
    border-color: var(--primary);
    background: linear-gradient(
        135deg,
        rgba(31, 92, 255, 0.045),
        rgba(31, 92, 255, 0.012)
    );

    box-shadow: 0 0 0 3px rgba(31, 92, 255, 0.055);
}

.account-icon {
    width: 52px;
    height: 52px;

    border-radius: 50%;

    display: grid;
    place-items: center;

    font-size: 23px;
    color: var(--primary);
    background: var(--soft-blue);
}

.account-type[data-type="freelancer"] .account-icon {
    color: var(--green);
    background: var(--soft-green);
}

.account-info strong {
    display: block;
    margin-bottom: 4px;

    color: var(--text);
    font-size: 15px;
    font-weight: 700;
}

.account-info span {
    display: block;

    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.account-radio {
    width: 18px;
    height: 18px;

    border: 1.7px solid #98a2b3;
    border-radius: 50%;

    display: grid;
    place-items: center;
}

.account-type.active .account-radio {
    border-color: var(--primary);
}

.account-type.active .account-radio::after {
    content: "";

    width: 8px;
    height: 8px;

    border-radius: 50%;
    background: var(--primary);
}

/* =========================================================
   SHORTCODE FORM WRAPPERS
========================================================= */

.signup-form-shortcode {
    margin-top: 4px;
}

.signup-form-shortcode[hidden] {
    display: none;
}

/* =========================================================
   HERO SWITCHING
========================================================= */

.signup-hero.switching {
    opacity: 0.96;
}

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

@media (max-width: 1100px) {
    .signup-page {
        grid-template-columns: minmax(390px, 0.88fr) 1.12fr;
    }

    .hero-title {
        font-size: 55px;
    }

    .signup-form-panel {
        padding-left: 6%;
        padding-right: 6%;
    }
}

@media (max-width: 900px) {
    .signup-page {
        display: block;
    }

    .signup-hero {
        min-height: 610px;
    }

    .hero-inner {
        min-height: 610px;
        padding: 35px 28px 40px;
    }

    .hero-main {
        padding-top: 70px;
    }

    .hero-title {
        max-width: 600px;
        font-size: 54px;
    }

    .signup-form-panel {
        min-height: auto;
        padding: 55px 28px 70px;
    }
}

@media (max-width: 620px) {
    .signup-hero {
        min-height: 670px;
    }

    .hero-inner {
        min-height: 670px;
        padding: 28px 21px 35px;
    }

    .brand-name {
        font-size: 23px;
    }

    .hero-main {
        padding-top: 55px;
    }

    .hero-title {
        font-size: 44px;
        letter-spacing: -2px;
    }

    .hero-copy {
        font-size: 16px;
    }

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

    .account-type {
        min-height: 105px;
    }

    .signup-form-panel {
        padding: 45px 20px 60px;
    }

    .form-title {
        font-size: 31px;
    }
}
