
/* ==============================
   GLOBAL STYLES
============================== */

* {
    box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;
}

body {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 15px;
    overflow-x: hidden;

    background: linear-gradient(
        175deg,
        rgb(0, 153, 255),
        rgba(135, 255, 249, 0.616),
        rgb(0, 255, 213)
    );

    background-image: url('/images/money.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* ==============================
   HEADING
============================== */

h1 {
    text-align: center;
    margin: 20px 0;
    position: relative;
    z-index: 2;
}

h1 b {
    margin-left: 0;
    font-size: clamp(30px, 5vw, 60px);
    text-decoration: none;
    font-family: "Bitcount Ink", system-ui;
    font-weight: 900;
}

/* ==============================
   DESCRIPTION TEXT
============================== */

p {
    max-width: 800px;
    margin: 15px auto 25px;
    padding: 0 10px;

    text-align: center;
    font-size: clamp(14px, 1.5vw, 18px);
    font-family: "Exo 2", sans-serif;
    font-style: italic;

    position: relative;
    z-index: 2;
}

/* ==============================
   REGISTRATION FORM
============================== */

form {
    width: min(550px, 90%);
    height: auto;
    min-height: 0;

    margin: 25px auto;
    padding: 25px 30px;

    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);

    box-shadow:
        2px 2px 10px rgba(0, 0, 0, 0.35),
        inset 1px 1px 5px rgba(255, 255, 255, 0.08);

    background-color: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    position: relative;
    z-index: 2;
}

/* Labels */

form label {
    display: block;

    margin: 13px 0 6px;
    padding: 0;

    font-family: "SUSE Mono", monospace;
    font-size: 15px;
    font-weight: 600;
    color: white;
}

/* Inputs and Select */

form input,
form select {
    display: block;

    width: 100%;
    min-height: 40px;

    padding: 9px 12px;
    margin: 0 0 12px;

    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 7px;

    background: rgba(255, 255, 255, 0.9);
    color: #222;

    font-family: "SUSE Mono", monospace;
    font-size: 14px;

    box-shadow:
        1px 2px 5px rgba(0, 0, 0, 0.3),
        inset 1px 1px 4px rgba(0, 0, 0, 0.1);

    outline: none;
}

form input:focus,
form select:focus {
    border-color: #00d9ff;
    box-shadow: 0 0 7px rgba(0, 217, 255, 0.7);
}

/* Register Button */

form button {
    display: block;

    width: 65%;
    min-height: 43px;

    margin: 22px auto 5px;
    padding: 10px 15px;

    border: none;
    border-radius: 7px;

    background: #ffffff;
    color: #111;

    font-family: "Orbitron", sans-serif;
    font-size: 15px;
    font-weight: 700;

    cursor: pointer;
    transition: 0.3s ease;
}

form button:hover {
    background: #00d9ff;
    color: #000;
    transform: translateY(-2px);
}

/* Error Message */

.email-error {
    display: block;
    width: 100%;
    margin: 8px 0;
    padding: 8px;

    color: #fff;
    background: rgba(180, 0, 0, 0.75);
    border-radius: 5px;

    font-size: 13px;
    text-align: center;
    overflow-wrap: anywhere;
}

/* ==============================
   SUCCESS PACKET ANIMATION
============================== */

.packet {
    width: 45vw;
    height: 60vh;

    opacity: 0;
    top: -50%;
    left: 0;

    position: absolute;

    background-color: rgba(253, 253, 253, 0.171);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    border-radius: 5px;

    box-shadow:
        1px 2px 5px black,
        inset 1px 1px 3px white;

    z-index: 3;
}

.packet svg {
    width: 100%;
    height: 100%;

    top: -30px;
    left: 0;

    position: absolute;
}

.lock1,
.lock2 {
    width: 5%;
    height: 8%;

    top: 2%;
    background-color: rgb(48, 48, 48);

    position: absolute;
}

.lock1 {
    left: 0;
}

.lock2 {
    right: 0;
}

.succema {
    position: absolute;

    width: 80%;
    max-width: 360px;
    min-height: 75px;

    left: 10%;
    top: 40%;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    padding: 15px;

    background: rgba(15, 23, 42, 0.92);
    color: #ffffff;

    border: 1px solid rgba(74, 222, 128, 0.5);
    border-radius: 16px;

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.3),
        0 0 18px rgba(74, 222, 128, 0.15);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    font-family: "Exo 2", sans-serif;
    font-size: 19px;
    font-weight: 700;
    text-align: center;

    scale: 0;
    opacity: 0;
}

/* Circular success icon */

.succema::before {
    content: "✓";

    flex-shrink: 0;

    width: 35px;
    height: 35px;

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

    border-radius: 50%;

    background: rgba(34, 197, 94, 0.18);
    border: 2px solid #4ade80;

    color: #4ade80;
    font-size: 22px;
    font-weight: bold;
}


/* ==============================
   TABLET RESPONSIVE
============================== */

@media (max-width: 768px) {

    body {
        padding: 12px;
    }

    h1 b {
        font-size: 38px;
    }

    p {
        max-width: 600px;
        font-size: 15px;
    }

    form {
        width: 85%;
        max-width: 520px;
        padding: 22px;
    }

    .packet {
        width: 70vw;
        height: 50vh;
    }

    .packet svg {
        width: 100%;
    }
}

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

@media (max-width: 600px) {

    body {
        width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        padding: 10px;
    }

    h1 {
        margin: 18px 0;
    }

    h1 b {
        font-size: 30px;
    }

    p {
        margin: 12px auto 20px;
        padding: 0 5px;
        font-size: 13px;
        line-height: 1.5;
    }

    form {
        width: 95%;
        max-width: 430px;

        margin: 20px auto;
        padding: 18px;

        border-radius: 12px;
    }

    form label {
        font-size: 13px;
        margin-top: 12px;
    }

    form input,
    form select {
        width: 100%;
        min-height: 42px;
        padding: 10px;
        font-size: 14px;
    }

    form button {
        width: 80%;
        min-height: 42px;
        margin-top: 18px;
        font-size: 14px;
    }

    .packet {
        left: 5vw;
        width: 90vw;
        height: 42vh;
    }

    .packet svg {
        left: 0;
        width: 100%;
        height: 100%;
    }

    .succema {
        width: 84%;
        left: 8%;
        min-height: 65px;
        padding: 12px;
        gap: 9px;
        font-size: 15px;
    }

    .succema::before {
        width: 30px;
        height: 30px;
        font-size: 19px;
    }

    .lock1,
    .lock2 {
        width: 7%;
        height: 9%;
    }
}

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

@media (max-width: 360px) {

    h1 b {
        font-size: 25px;
    }

    form {
        width: 98%;
        padding: 14px;
    }

    form label {
        font-size: 12px;
    }

    form input,
    form select {
        font-size: 13px;
    }

    form button {
        width: 90%;
        font-size: 13px;
    }

    .succema {
        font-size: 14px;
    }
}