* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Nunito', system-ui, sans-serif;
    color: #2B2250;
    background: #FFF8EE;
}

a {
    color: #6C3CE0;
    text-decoration: none;
    font-weight: 800;
}

a:hover {
    color: #4A23A8;
}

.h {
    font-family: 'Fredoka', system-ui, sans-serif;
}

.i {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.muted {
    color: #5E5685;
}


/* LAYOUT */

.page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: min(520px, 38%) minmax(0, 1fr);
}


/* LEFT SIDE */

.left-side {
    background: #FFC83D;
    padding: 48px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 30px;
}

.logo-word {
    display: block;
    height: 68px;
    width: auto;
}

.left-side h1 {
    margin: 0;
    font-size: clamp(30px, 3.1vw, 44px);
    line-height: 1.1;
    font-weight: 600;
}

.steps {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.step {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #FFE39A;
    border-radius: 20px;
    padding: 16px 18px;
}

.step > div {
    display: flex;
    flex-direction: column;
}

.step .h {
    font-size: 19px;
    font-weight: 600;
}

.step small {
    font-size: 14px;
    color: #4A3F1A;
}

.step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    flex-shrink: 0;
}

.step.active {
    background: #FFFFFF;
    box-shadow: 0 4px 0 #D99A00;
}

.step.active .step-number {
    background: #6C3CE0;
    color: #FFFFFF;
}

.step.active small {
    color: #5E5685;
}

.features {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 15px;
    font-weight: 700;
}

.features div {
    display: flex;
    align-items: center;
    gap: 10px;
}


/* RIGHT SIDE */

.right-side {
    display: flex;
    justify-content: center;
    padding: 48px 64px;
}

.form-container,
#signupForm {
    width: 100%;
    max-width: 620px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.topbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}

.progress {
    font-size: 14px;
    font-weight: 800;
    color: #5A2FC7;
    background: #EFE8FF;
    padding: 6px 12px;
    border-radius: 10px;
}

.heading {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.heading h2 {
    margin: 0;
    font-size: clamp(30px, 2.8vw, 40px);
    font-weight: 600;
}

.heading p {
    margin: 0;
    font-size: 17px;
}


/* FIELDS */

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.lbl {
    font-weight: 800;
    font-size: 15px;
}

.soft {
    font-weight: 600;
    color: #6E6690;
}

.inp {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 54px;
    padding: 0 18px;
    border: 2px solid #F0E8DA;
    border-radius: 18px;
    background: #FFFFFF;
    color: #6E6690;
}

.inp:focus-within {
    border-color: #6C3CE0;
}

.inp.ok {
    border-color: #3DC9A8;
}

.inp.bad {
    border-color: #FF8A7A;
}

.inp input,
.inp select {
    flex-grow: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: none;
    background: transparent;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    color: #2B2250;
}

.inp select {
    appearance: none;
    padding-right: 24px;
    cursor: pointer;
}

.chevron {
    position: absolute;
    right: 16px;
    pointer-events: none;
}

#usernameStatus {
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.birthday-inputs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.hint {
    font-size: 14px;
    color: #5E5685;
}


/* AVATARS */

.avatars {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.avatar {
    width: 64px;
    height: 64px;
    padding: 0;
    border: 3px solid transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.avatar svg:not(.i) {
    width: 40px;
    height: 40px;
}

.avatar.yellow { background: #FFC83D; }
.avatar.red { background: #FF8A7A; border-radius: 20px; }
.avatar.green { background: #3DC9A8; }
.avatar.blue { background: #4DA8FF; border-radius: 20px; }
.avatar.purple { background: #C9B6FF; }

.avatar.edit {
    background: #FFFFFF;
    border: 3px dashed #C9B6FF;
    color: #6C3CE0;
}

.avatar.selected {
    border: 3px solid #6C3CE0;
    box-shadow: 0 0 0 3px #EFE8FF;
}


/* USERNAME IDEAS */

.ideas {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 14px;
    font-weight: 700;
    color: #5E5685;
}

.chip {
    height: 34px;
    padding: 0 14px;
    border-radius: 12px;
    border: 2px dashed #C9B6FF;
    background: #F3EEFF;
    color: #5A2FC7;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
}


/* PASSWORD STRENGTH */

.password-strength {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.password-strength span {
    height: 8px;
    border-radius: 4px;
    background: #F0E8DA;
}

.password-strength .weak { background: #FF8A7A; }
.password-strength .medium,
.password-strength .strong { background: #3DC9A8; }

#passwordText:empty {
    display: none;
}

#passwordText {
    font-size: 14px;
    font-weight: 700;
}


/* AGREEMENT */

.agreement {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    background: #FFF4D6;
    border-radius: 16px;
    padding: 14px 16px;
}

.agreement input {
    width: 22px;
    height: 22px;
    margin: 0;
    flex-shrink: 0;
    accent-color: #6C3CE0;
}


/* BUTTON */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 56px;
    padding: 0 24px;
    border: 0;
    border-radius: 18px;
    background: #6C3CE0;
    color: #FFFFFF;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 19px;
    box-shadow: 0 5px 0 #4A23A8;
    cursor: pointer;
}

.btn:hover {
    background: #5A2FC7;
}

.btn:disabled {
    opacity: 0.7;
    cursor: wait;
}


/* STEP 2 / 3 */

.done-box {
    flex-direction: column;
    gap: 16px;
    background: #FFFFFF;
    border: 2px solid #F0E8DA;
    border-radius: 24px;
    padding: 32px;
}

.done-box[style*="block"] {
    display: flex !important;
}

.done-box h3 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
}

.done-box p {
    margin: 0;
    font-size: 17px;
}


/* SMALL LAPTOP */

@media (max-width: 1100px) {
    .left-side {
        padding: 40px 32px;
    }

    .right-side {
        padding: 40px 32px;
    }
}


/* TABLET: stack, yellow becomes a header */

@media (max-width: 900px) {
    .page {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .left-side {
        padding: 32px 24px;
        gap: 24px;
    }

    .steps {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .step {
        padding: 12px 14px;
        gap: 12px;
    }

    .features {
        margin-top: 0;
    }

    .right-side {
        padding: 40px 24px 48px;
    }
}


/* PHONE */

@media (max-width: 600px) {
    .left-side {
        padding: 24px 16px;
        gap: 20px;
    }

    .logo {
        font-size: 24px;
    }

    .logo-word {
        height: 52px;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .step-number {
        width: 36px;
        height: 36px;
        font-size: 17px;
    }

    .step .h {
        font-size: 17px;
    }

    .features {
        font-size: 14px;
        gap: 8px;
    }

    .right-side {
        padding: 32px 16px 40px;
    }

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

    .avatars {
        gap: 8px;
    }

    .avatar {
        width: 52px;
        height: 52px;
    }

    .avatar svg:not(.i) {
        width: 32px;
        height: 32px;
    }

    .avatar.red,
    .avatar.blue {
        border-radius: 16px;
    }

    .agreement {
        font-size: 15px;
    }
}
