@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
    --bg: #050606;
    --card: #0b0e0e;
    --input: #080a0a;

    --white: #f5f7f7;
    --muted: #80888a;
    --dim: #4d5557;

    --green: #8cff3f;

    --border: rgba(255,255,255,.075);
    --green-border: rgba(140,255,63,.20);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    overflow-x: hidden;

    background: var(--bg);
    color: var(--white);

    font-family: "Inter", sans-serif;
}

button,
input {
    font-family: inherit;
}

button {
    cursor: pointer;
}

a {
    text-decoration: none;
    color: inherit;
}


/* BACKGROUND */

.background {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.grid {
    position: absolute;
    inset: -100px;

    opacity: .35;

    background-image:
        linear-gradient(
            rgba(255,255,255,.018) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.018) 1px,
            transparent 1px
        );

    background-size: 48px 48px;

    transform:
        perspective(500px)
        rotateX(55deg)
        translateY(180px)
        scale(1.4);
}

.glow {
    position: absolute;

    width: 500px;
    height: 500px;

    border-radius: 50%;

    filter: blur(100px);

    opacity: .06;

    background: var(--green);
}

.glow-one {
    top: -220px;
    left: 10%;
}

.glow-two {
    right: -250px;
    bottom: -250px;
}


/* PAGE */

.register-page {
    min-height: 100vh;

    position: relative;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 80px 20px 30px;
}


/* BRAND */

.brand {
    display: flex;
    align-items: center;
    gap: 10px;

    position: absolute;

    top: 32px;
    left: 40px;

    font-size: 18px;
    font-weight: 900;

    letter-spacing: -1px;
}

.brand-mark {
    width: 35px;
    height: 35px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background: var(--green);
    color: #071006;

    font-size: 17px;
    font-weight: 900;

    box-shadow:
        0 0 35px
        rgba(140,255,63,.08);
}

.brand-name span {
    color: var(--green);
}


/* CARD */

.register-card {
    width: min(450px, 100%);

    position: relative;

    padding: 36px 38px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.035),
            rgba(255,255,255,.012)
        );

    border: 1px solid var(--border);

    border-radius: 18px;

    box-shadow:
        0 35px 100px rgba(0,0,0,.45);

    backdrop-filter: blur(20px);

    animation: cardIn .55s ease both;
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-glow {
    position: absolute;

    width: 160px;
    height: 160px;

    top: -80px;
    left: 50%;

    transform: translateX(-50%);

    border-radius: 50%;

    background: var(--green);

    filter: blur(90px);

    opacity: .045;

    pointer-events: none;
}


/* HEADING */

.heading {
    margin-bottom: 25px;
}

.status {
    display: flex;
    align-items: center;
    gap: 7px;

    color: var(--green);

    font-size: 7px;
    font-weight: 900;

    letter-spacing: 1.6px;
}

.status span {
    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 12px
        rgba(140,255,63,.7);
}

.heading h1 {
    margin-top: 11px;

    font-size: 31px;

    line-height: 1;

    letter-spacing: -1.8px;
}

.heading h1 span {
    color: var(--green);
}

.heading p {
    margin-top: 9px;

    color: var(--muted);

    font-size: 9px;
}


/* GOOGLE */

.google-button {
    width: 100%;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: rgba(255,255,255,.025);

    color: var(--white);

    font-size: 8px;
    font-weight: 700;

    transition: .2s ease;
}

.google-button:hover {
    background: rgba(255,255,255,.045);

    border-color:
        rgba(255,255,255,.12);

    transform: translateY(-1px);
}

.google-icon,
.google-icon svg {
    width: 17px;
    height: 17px;
}


/* DIVIDER */

.divider {
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
}

.divider::before {
    content: "";

    position: absolute;

    width: 100%;
    height: 1px;

    background: var(--border);
}

.divider span {
    position: relative;

    padding: 0 10px;

    background: var(--card);

    color: var(--dim);

    font-size: 6px;
    font-weight: 900;

    letter-spacing: 1px;
}


/* FIELDS */

.field {
    margin-bottom: 14px;
}

.field label {
    display: block;

    margin-bottom: 7px;

    color: #adb4b6;

    font-size: 7px;
    font-weight: 800;

    letter-spacing: .7px;
}


/* INPUT */

.input {
    height: 45px;

    display: flex;
    align-items: center;

    padding: 0 13px;

    background: var(--input);

    border: 1px solid var(--border);

    border-radius: 10px;

    transition: .2s ease;
}

.input:focus-within {
    border-color: var(--green-border);

    box-shadow:
        0 0 0 3px
        rgba(140,255,63,.025);
}

.input > svg {
    width: 15px;
    height: 15px;

    margin-right: 10px;

    flex-shrink: 0;

    fill: none;

    stroke: var(--dim);

    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.input input {
    width: 100%;
    height: 100%;

    border: 0;
    outline: 0;

    background: transparent;

    color: var(--white);

    font-size: 9px;
}

.input input::placeholder {
    color: #464d4f;
}


/* PASSWORD EYE */

.eye {
    width: 25px;
    height: 30px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border: 0;

    background: transparent;

    color: var(--dim);
}

.eye:hover,
.eye.active {
    color: var(--green);
}

.eye svg {
    width: 15px;
    height: 15px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* PASSWORD STRENGTH */

.strength {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-top: 7px;
}

.strength-bars {
    display: flex;

    gap: 3px;
}

.strength-bars i {
    width: 25px;
    height: 3px;

    border-radius: 10px;

    background: rgba(255,255,255,.07);

    transition: .2s ease;
}

.strength-bars i.active {
    background: var(--green);

    box-shadow:
        0 0 8px
        rgba(140,255,63,.2);
}

.strength span {
    color: var(--dim);

    font-size: 6px;
}


/* TERMS */

.terms-check {
    display: flex;
    align-items: flex-start;

    gap: 8px;

    margin-top: 4px;

    color: var(--muted);

    font-size: 7px;

    line-height: 1.6;

    cursor: pointer;
}

.terms-check input {
    display: none;
}

.checkbox {
    width: 14px;
    height: 14px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    margin-top: 1px;

    border: 1px solid var(--border);

    border-radius: 4px;
}

.terms-check input:checked + .checkbox {
    background: var(--green);

    border-color: var(--green);
}

.terms-check input:checked + .checkbox::after {
    content: "";

    width: 6px;
    height: 3px;

    border-left: 1.5px solid #071006;
    border-bottom: 1.5px solid #071006;

    transform:
        rotate(-45deg)
        translateY(-1px);
}

.terms-check a {
    color: var(--green);
    font-weight: 700;
}


/* MESSAGE */

.message {
    min-height: 18px;

    margin-top: 8px;

    color: #ff6f6f;

    font-size: 7px;
}


/* REGISTER BUTTON */

.register-button {
    width: 100%;
    height: 47px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    border: 0;

    border-radius: 10px;

    background: var(--green);

    color: #071006;

    font-size: 8px;
    font-weight: 900;

    transition: .2s ease;
}

.register-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 35px
        rgba(140,255,63,.12);
}

.register-button svg {
    width: 15px;
    height: 15px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.8;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.register-button.loading {
    pointer-events: none;

    opacity: .75;
}

.loader {
    width: 12px;
    height: 12px;

    border: 2px solid rgba(7,16,6,.25);

    border-top-color: #071006;

    border-radius: 50%;

    animation: spin .7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* LOGIN */

.login {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    margin-top: 24px;

    color: #8b9395;

    font-size: 11px;
    font-weight: 500;

    line-height: 1.5;
}

.login a {
    color: var(--green);

    font-size: 11px;
    font-weight: 800;

    transition: .2s ease;
}

.login a:hover {
    color: #aaff70;
    text-decoration: underline;
}


/* BOTTOM */

.bottom {
    width: min(450px, 100%);

    display: flex;
    justify-content: space-between;

    margin-top: 14px;

    color: var(--dim);

    font-size: 6px;
}

.secure {
    display: flex;
    align-items: center;

    gap: 5px;
}

.secure svg {
    width: 11px;
    height: 11px;

    fill: none;

    stroke: var(--green);

    stroke-width: 1.8;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* MOBILE */

@media (max-width: 600px) {

    .register-page {
        padding:
            85px 16px 30px;

        justify-content: flex-start;
    }

    .brand {
        top: 24px;
        left: 20px;
    }

    .register-card {
        padding: 27px 22px;

        border-radius: 15px;
    }

    .heading h1 {
        font-size: 28px;
    }

    .bottom {
        padding: 0 3px;
    }
}