* {
    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(640px, 44%) minmax(0, 1fr);
}


/* LEFT SIDE */

.left-side {
    background: #6C3CE0;
    color: #FFFFFF;
    padding: 48px 56px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    overflow: hidden;
}

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

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

.intro {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.intro h1 {
    margin: 0;
    font-size: clamp(32px, 3.6vw, 52px);
    line-height: 1.08;
    font-weight: 600;
}

.intro p {
    margin: 0;
    font-size: 19px;
    line-height: 1.5;
    max-width: 460px;
    color: #F1EBFF;
}

.characters {
    width: 100%;
    max-width: 528px;
    height: auto;
    margin-top: auto;
    align-self: center;
}


/* RIGHT SIDE */

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

.login-form {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.heading,
.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.heading h2 {
    margin: 0;
    font-size: clamp(32px, 3vw, 42px);
    font-weight: 600;
}

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

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

.password-title {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    justify-content: space-between;
    align-items: baseline;
}

.password-title a {
    font-size: 14px;
}

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

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

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

.eye {
    border: 0;
    background: transparent;
    color: #6E6690;
    cursor: pointer;
    padding: 0;
    display: flex;
}

.remember {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

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


/* BUTTONS */

.btn,
.btn-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    border-radius: 18px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    cursor: pointer;
}

.btn {
    gap: 8px;
    padding: 0 24px;
    border: 0;
    background: #6C3CE0;
    color: #FFFFFF;
    font-size: 19px;
    box-shadow: 0 5px 0 #4A23A8;
}

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

.btn-soft {
    gap: 10px;
    padding: 0 20px;
    border: 2px solid #F0E8DA;
    background: #FFFFFF;
    color: #2B2250;
    font-size: 17px;
}

.colors {
    display: flex;
    gap: 4px;
}

.colors i {
    width: 22px;
    height: 22px;
    border-radius: 7px;
}

.colors .yellow { background: #FFC83D; }
.colors .red { background: #FF8A7A; border-radius: 50%; }
.colors .green { background: #3DC9A8; }

.divider {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #6E6690;
    font-size: 14px;
    font-weight: 700;
}

.divider span {
    flex-grow: 1;
    height: 2px;
    background: #F0E8DA;
}

.new-account {
    margin: 8px 0 0;
    text-align: center;
    font-size: 16px;
    color: #5E5685;
}

.security-message {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #E1F7F0;
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 700;
    color: #0F5F49;
}


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

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

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

    .intro {
        margin-top: 8px;
    }

    .characters {
        max-width: 320px;
        margin-top: 0;
    }

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


/* PHONE */

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

    .logo {
        font-size: 24px;
    }

    .logo-word {
        height: 52px;
    }

    .intro p {
        font-size: 16px;
    }

    .characters {
        max-width: 240px;
    }

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

    .login-form {
        gap: 20px;
    }
}
