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

:root {
    --primary: #5050f1;
    --primary-dark: #3d3dcc;
    --background: #08090d;
    --surface: #101219;
    --surface-light: #171922;
    --border: #292c38;
    --text: #f4f5f8;
    --muted: #9498a8;
    --danger: #ff5c70;
    --success: #35d39a;
}

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

    background: var(--background);
    color: var(--text);
    min-height: 100vh;
}
a {
    color: #8589ff;
    text-decoration: none;
    font-size: 12px;
}

a:hover {
    text-decoration: underline;
}



.signup-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 42% 58%;
}


/* =========================
   LEFT SIDE
========================= */

.signup-intro {
    position: relative;
    padding: 45px 7%;
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(80, 80, 241, 0.22),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #0d0f18,
            #08090d
        );

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

    display: flex;
    flex-direction: column;
}

.brand,
.mobile-brand {
    display: flex;
    align-items: center;
    gap: 12px;

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

.brand-logo {
    width: 40px;
    height: 40px;

    border-radius: 12px;

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

    background: var(--primary);

    color: white;
    font-weight: 800;
}

.intro-content {
    margin-top: auto;
    margin-bottom: auto;
    max-width: 560px;
}

.intro-label,
.form-label {
    color: #8589ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.intro-content h1 {
    margin-top: 18px;

    font-size: clamp(38px, 4vw, 65px);
    line-height: 1.03;
    letter-spacing: -2px;
}

.intro-content h1 span {
    display: block;
    color: #8589ff;
}

.intro-content > p {
    margin-top: 25px;

    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;

    max-width: 490px;
}

.benefits {
    margin-top: 40px;

    display: flex;
    flex-direction: column;
    gap: 22px;
}

.benefit {
    display: flex;
    gap: 15px;
}

.benefit-icon {
    flex-shrink: 0;

    width: 30px;
    height: 30px;

    border-radius: 50%;

    background: rgba(80, 80, 241, 0.15);
    border: 1px solid rgba(80, 80, 241, 0.4);

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

    color: #8d8fff;
}

.benefit strong {
    font-size: 14px;
}

.benefit p {
    margin-top: 4px;

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

.intro-footer {
    color: #606473;
    font-size: 12px;
}

.mobile-brand {
    display: none;
}


/* =========================
   RIGHT SIDE
========================= */

.signup-form-section {
    padding: 50px 7%;

    display: flex;
    justify-content: center;
}

.signup-container {
    width: 100%;
    max-width: 760px;
}

.form-heading {
    margin-bottom: 35px;
}

.form-heading h2 {
    margin-top: 8px;

    font-size: 34px;
    letter-spacing: -1px;
}

.form-heading p {
    margin-top: 8px;

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


/* =========================
   FORM SECTIONS
========================= */

.form-section {
    margin-bottom: 35px;
    padding-bottom: 35px;

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

.section-title {
    display: flex;
    gap: 15px;

    margin-bottom: 25px;
}

.section-title > span {
    width: 34px;
    height: 34px;

    flex-shrink: 0;

    border-radius: 10px;

    background: rgba(80, 80, 241, 0.13);

    color: #8589ff;

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

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

.section-title h3 {
    font-size: 16px;
}

.section-title p {
    margin-top: 4px;

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

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group.full {
    grid-column: 1 / -1;
}

.input-group label {
    font-size: 13px;
    font-weight: 600;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;

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

    background: var(--surface);
    color: var(--text);

    padding: 14px 15px;

    outline: none;

    font-family: inherit;
    font-size: 14px;

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

.input-group textarea {
    resize: vertical;
    min-height: 90px;
}

.input-group input::placeholder,
.input-group textarea::placeholder {
    color: #5e6270;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(80, 80, 241, 0.12);
}

.input-group select {
    cursor: pointer;
}


/* =========================
   PASSWORD
========================= */

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 65px;
}

.password-toggle {
    position: absolute;

    right: 10px;
    top: 50%;

    transform: translateY(-50%);

    border: 0;
    background: transparent;

    color: #8589ff;

    cursor: pointer;

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

.password-strength {
    margin-top: 5px;

    width: 100%;
    height: 4px;

    background: #222530;

    border-radius: 10px;

    overflow: hidden;
}

.password-strength div {
    width: 0;
    height: 100%;

    transition: width 0.25s;
}

.input-group small {
    color: var(--muted);
    font-size: 11px;
}


/* =========================
   TERMS
========================= */

.terms {
    margin-bottom: 22px;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    cursor: pointer;

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

.checkbox-wrapper input {
    position: absolute;
    opacity: 0;
}

.custom-checkbox {
    width: 18px;
    height: 18px;

    flex-shrink: 0;

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

    background: var(--surface);

    margin-top: 1px;

    position: relative;
}

.checkbox-wrapper input:checked + .custom-checkbox {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-wrapper input:checked + .custom-checkbox::after {
    content: "✓";

    position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    color: white;
    font-size: 12px;
    font-weight: bold;
}


/* =========================
   MESSAGE
========================= */

.form-message {
    margin-bottom: 18px;

    padding: 12px 14px;

    border-radius: 9px;

    font-size: 13px;
}

.form-message.error {
    background: rgba(255, 92, 112, 0.1);
    border: 1px solid rgba(255, 92, 112, 0.3);
    color: #ff8c9b;
}

.form-message.success {
    background: rgba(53, 211, 154, 0.1);
    border: 1px solid rgba(53, 211, 154, 0.3);
    color: #62e2b2;
}


/* =========================
   BUTTON
========================= */

.signup-button {
    width: 100%;

    border: none;
    border-radius: 11px;

    padding: 15px;

    background: var(--primary);
    color: white;

    cursor: pointer;

    font-size: 14px;
    font-weight: 700;

    transition:
        background 0.2s,
        transform 0.2s;
}

.signup-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.signup-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.login-link {
    margin-top: 20px;

    text-align: center;

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

.login-link a {
    color: #8589ff;
    font-weight: 700;
    text-decoration: none;
}

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


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

@media (max-width: 900px) {

    .signup-page {
        grid-template-columns: 1fr;
    }

    .signup-intro {
        display: none;
    }

    .signup-form-section {
        padding: 30px 20px;
    }

    .mobile-brand {
        display: flex;
        margin-bottom: 40px;
    }

    .signup-container {
        max-width: 650px;
    }
}


@media (max-width: 600px) {

    .signup-form-section {
        padding: 25px 16px;
    }

    .form-heading h2 {
        font-size: 28px;
    }

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

    .input-group.full {
        grid-column: auto;
    }

    .form-section {
        margin-bottom: 28px;
        padding-bottom: 28px;
    }

    .section-title {
        margin-bottom: 20px;
    }
}