* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #020617;
    --blue: #38bdf8;
    --blue-dark: #2563eb;
    --purple: #7c3aed;

    --text: #f8fafc;
    --muted: #94a3b8;

    --danger: #fb7185;
    --success: #4ade80;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    min-height: 100vh;

    overflow-x: hidden;

    font-family:
        Tahoma,
        "Segoe UI",
        sans-serif;

    color: var(--text);

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(37,99,235,.25),
            transparent 35%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(124,58,237,.2),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #020617,
            #0f172a
        );
}


/* ======================================================
   BACKGROUND
====================================================== */

.space-background {
    position: fixed;
    inset: 0;

    overflow: hidden;

    pointer-events: none;

    z-index: 0;
}

.stars {
    position: absolute;

    inset: -100%;

    background-image:
        radial-gradient(
            1px 1px at 20px 30px,
            white,
            transparent
        ),
        radial-gradient(
            1px 1px at 80px 120px,
            rgba(255,255,255,.7),
            transparent
        ),
        radial-gradient(
            2px 2px at 180px 80px,
            rgba(56,189,248,.8),
            transparent
        ),
        radial-gradient(
            1px 1px at 300px 200px,
            rgba(255,255,255,.7),
            transparent
        );

    background-size: 350px 250px;

    animation: starsMove 40s linear infinite;
}

.stars-2 {
    opacity: .4;

    transform: scale(1.5);

    animation-duration: 70s;
}

.stars-3 {
    opacity: .2;

    transform: scale(2);

    animation-duration: 100s;
}

@keyframes starsMove {

    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(250px, 180px);
    }
}


/* ======================================================
   GLOW
====================================================== */

.glow {
    position: absolute;

    width: 420px;
    height: 420px;

    border-radius: 50%;

    filter: blur(100px);

    opacity: .2;
}

.glow-blue {
    top: -180px;
    left: -150px;

    background: #2563eb;
}

.glow-purple {
    right: -150px;
    bottom: -200px;

    background: #7c3aed;
}


/* ======================================================
   PAGE
====================================================== */

.registerPage {
    position: relative;

    z-index: 2;

    min-height: 100vh;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 30px 16px;
}


/* ======================================================
   CARD
====================================================== */

.registerCard {
    width: 100%;
    max-width: 470px;

    padding: 34px;

    border-radius: 30px;

    background:
        linear-gradient(
            145deg,
            rgba(15,23,42,.94),
            rgba(15,23,42,.74)
        );

    border:
        1px solid
        rgba(255,255,255,.12);

    box-shadow:
        0 30px 80px rgba(0,0,0,.55),
        0 0 80px rgba(37,99,235,.08);

    backdrop-filter: blur(22px);

    animation: cardEnter .7s ease;
}

@keyframes cardEnter {

    from {
        opacity: 0;

        transform:
            translateY(25px)
            scale(.97);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


/* ======================================================
   BRAND
====================================================== */

.brand {
    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 30px;
}

.brandIcon {
    width: 58px;
    height: 58px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 18px;

    font-size: 28px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #7c3aed
        );

    box-shadow:
        0 12px 30px
        rgba(37,99,235,.3);
}

.brand h1 {
    font-size: 25px;

    font-weight: 900;

    margin-bottom: 4px;
}

.brand p {
    color: var(--muted);

    font-size: 13px;
}


/* ======================================================
   TITLE
====================================================== */

.registerTitle {
    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 28px;
}

.titleIcon {
    width: 50px;
    height: 50px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 16px;

    font-size: 24px;

    background:
        rgba(56,189,248,.1);

    border:
        1px solid
        rgba(56,189,248,.2);
}

.registerTitle h2 {
    font-size: 22px;

    margin-bottom: 5px;
}

.registerTitle p {
    color: var(--muted);

    font-size: 13px;
}


/* ======================================================
   INPUT
====================================================== */

.inputGroup {
    margin-bottom: 18px;
}

.inputGroup label {
    display: block;

    margin-bottom: 8px;

    color: #cbd5e1;

    font-size: 14px;

    font-weight: 700;
}

.inputBox {
    min-height: 57px;

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 0 15px;

    border-radius: 17px;

    background:
        rgba(2,6,23,.65);

    border:
        1px solid
        rgba(255,255,255,.1);

    transition: .25s;
}

.inputBox:focus-within {
    border-color:
        rgba(56,189,248,.75);

    box-shadow:
        0 0 0 4px
        rgba(56,189,248,.08),
        0 0 25px
        rgba(56,189,248,.08);
}

.inputBox > span {
    font-size: 20px;

    opacity: .8;
}

.inputBox input {
    width: 100%;
    height: 55px;

    border: none;
    outline: none;

    background: transparent;

    color: white;

    font-family: inherit;

    font-size: 15px;
}

.inputBox input::placeholder {
    color: #64748b;
}

.passwordToggle {
    border: none;

    background: transparent;

    color: white;

    font-size: 18px;

    cursor: pointer;

    opacity: .7;
}

.passwordToggle:hover {
    opacity: 1;

    transform: scale(1.1);
}

.hint {
    display: block;

    margin-top: 6px;

    color: #64748b;

    font-size: 11px;
}


/* ======================================================
   PASSWORD STRENGTH
====================================================== */

.strengthBox {
    margin:
        5px 0 12px;
}

.strengthHeader {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 7px;

    color: #64748b;

    font-size: 11px;
}

.strengthHeader strong {
    color: #94a3b8;
}

.strengthBar {
    width: 100%;
    height: 5px;

    overflow: hidden;

    border-radius: 999px;

    background:
        rgba(255,255,255,.08);
}

.strengthFill {
    width: 0;
    height: 100%;

    border-radius: inherit;

    background: #334155;

    transition:
        width .3s ease,
        background .3s ease;
}


/* ======================================================
   MESSAGE
====================================================== */

.message {
    min-height: 22px;

    margin: 5px 0 9px;

    text-align: center;

    color: var(--danger);

    font-size: 13px;
}

.message.success {
    color: var(--success);
}


/* ======================================================
   BUTTON
====================================================== */

.registerButton {
    position: relative;

    width: 100%;
    height: 58px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    border: none;

    border-radius: 17px;

    color: white;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #7c3aed
        );

    font-family: inherit;

    font-size: 16px;

    font-weight: 900;

    cursor: pointer;

    overflow: hidden;

    box-shadow:
        0 15px 35px
        rgba(37,99,235,.25);

    transition:
        transform .2s,
        box-shadow .2s;
}

.registerButton:hover {
    transform:
        translateY(-2px);

    box-shadow:
        0 18px 40px
        rgba(37,99,235,.35);
}

.registerButton:active {
    transform:
        scale(.98);
}

.registerButton.loading {
    pointer-events: none;

    opacity: .7;
}

.loader {
    display: none;

    width: 20px;
    height: 20px;

    border:
        3px solid
        rgba(255,255,255,.3);

    border-top-color: white;

    border-radius: 50%;

    animation:
        spin .7s linear infinite;
}

.registerButton.loading .loader {
    display: block;
}

.registerButton.loading .buttonIcon,
.registerButton.loading .buttonText {
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* ======================================================
   LOGIN
====================================================== */

.loginBox {
    margin-top: 24px;

    padding-top: 21px;

    border-top:
        1px solid
        rgba(255,255,255,.08);

    text-align: center;

    color: var(--muted);

    font-size: 13px;
}

.loginBox button {
    display: block;

    margin: 8px auto 0;

    border: none;

    background: transparent;

    color: var(--blue);

    font-family: inherit;

    font-size: 14px;

    font-weight: 800;

    cursor: pointer;
}

.loginBox button:hover {
    color: #7dd3fc;
}


/* ======================================================
   BACK
====================================================== */

.backButton {
    display: block;

    margin: 21px auto 0;

    border: none;

    background: transparent;

    color: #64748b;

    font-family: inherit;

    font-size: 13px;

    cursor: pointer;
}

.backButton:hover {
    color: white;
}


/* ======================================================
   MOBILE
====================================================== */

@media (max-width: 520px) {

    .registerPage {
        padding: 18px 12px;
    }

    .registerCard {
        padding: 25px 20px;

        border-radius: 25px;
    }

    .brandIcon {
        width: 52px;
        height: 52px;
    }

    .brand h1 {
        font-size: 22px;
    }

    .registerTitle h2 {
        font-size: 20px;
    }
}