@font-face {
    font-family: "ElariaFont";
    src: url("../font.otf");
}

/* ================= RESET ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "ElariaFont", sans-serif;
}

body {
    min-height: 100vh;
    background: #000;
    color: white;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow-x: hidden;
    position: relative;

    padding: 40px 20px;
}

/* ================= BACKGROUND ================= */

.stars,
.blobs {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.stars {
    z-index: 1;
}

.blobs {
    z-index: 2;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;

    opacity: 0;

    animation: starFloat linear infinite;
}

@keyframes starFloat {
    0% {
        transform: translateY(40px);
        opacity: 0;
    }

    20% {
        opacity: .7;
    }

    100% {
        transform: translateY(-220px);
        opacity: 0;
    }
}

.blob {
    position: absolute;

    width: 500px;
    height: 500px;

    border-radius: 50%;

    filter: blur(140px);
    opacity: .18;

    animation: blobMove 18s ease-in-out infinite;
}

.pink {
    background: #ff4fd8;
    left: -100px;
    top: 50px;
}

.purple {
    background: #7c3aed;
    right: -100px;
    bottom: 50px;
}

@keyframes blobMove {
    0% {
        transform: translate(0,0);
    }

    50% {
        transform: translate(120px,-80px);
    }

    100% {
        transform: translate(0,0);
    }
}

/* ================= CARD ================= */

.app-container {
    position: relative;
    z-index: 10;

    width: 700px;
    max-width: 95vw;

    padding: 35px;

    border-radius: 24px;

    background: rgba(255,255,255,.06);

    border: 1px solid rgba(255,255,255,.12);

    backdrop-filter: blur(20px);

    box-shadow:
        0 0 50px rgba(255,79,216,.08),
        0 0 120px rgba(124,58,237,.04);
}

/* ================= HEADER ================= */

.title-row {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 14px;
}

.title-row img {
    width: 52px;
}

h1 {
    font-size: 34px;

    background: linear-gradient(
        90deg,
        #ff4fd8,
        #c084fc
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sub {
    margin-top: 15px;

    text-align: center;

    color: rgba(255,255,255,.72);

    line-height: 1.7;
    font-size: 14px;
}

/* ================= ROLE BUTTONS ================= */

#step1 {
    margin-top: 25px;
}

button {
    width: 100%;

    margin-top: 12px;

    border: none;
    border-radius: 14px;

    padding: 14px;

    background: linear-gradient(
        90deg,
        #ff4fd8,
        #7c3aed
    );

    color: white;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        opacity .2s ease;
}

button:hover {
    transform: translateY(-3px);

    box-shadow:
        0 0 25px rgba(255,79,216,.35);
}

button:active {
    transform: translateY(0);
}

/* ================= FORM ================= */

#step2 {
    margin-top: 20px;
}

#formTitle {
    text-align: center;

    margin-bottom: 20px;

    font-size: 24px;

    background: linear-gradient(
        90deg,
        #ff4fd8,
        #c084fc
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#form div {
    margin-bottom: 18px;
}

#form input,
#form textarea {
    width: 100%;

    margin-top: 8px;

    padding: 12px 14px;

    border-radius: 12px;

    border: 1px solid rgba(255,255,255,.1);

    background: rgba(0,0,0,.35);

    color: white;

    outline: none;

    transition:
        border .2s ease,
        box-shadow .2s ease;
}

#form input:focus,
#form textarea:focus {
    border-color: #ff4fd8;

    box-shadow:
        0 0 15px rgba(255,79,216,.25);
}

#form textarea {
    resize: vertical;
    min-height: 120px;
}

/* ================= TOAST ================= */

#toast {
    position: fixed;

    top: 20px;
    right: 20px;

    z-index: 9999;

    background: rgba(0,0,0,.85);

    border: 1px solid rgba(255,79,216,.35);

    border-radius: 12px;

    padding: 12px 16px;

    opacity: 0;

    transition: .3s;
}

/* ================= LOADING ================= */

#loading {
    position: fixed;
    inset: 0;

    z-index: 99999;

    display: none;
    justify-content: center;
    align-items: center;

    background: rgba(0,0,0,.88);

    font-size: 18px;
}

/* ================= MOBILE ================= */

@media (max-width: 700px) {

    .app-container {
        padding: 25px;
    }

    .title-row {
        flex-direction: column;
        gap: 8px;
    }

    h1 {
        text-align: center;
        font-size: 28px;
    }
}

.fade-out {
    opacity: 0;
    transform: translateY(15px);
    pointer-events: none;
}

.fade-in {
    animation: fadeIn .4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#step1,
#step2 {
    transition: .35s ease;
}

#toast {
    position: fixed;
    top: 20px;
    right: 20px;

    background: rgba(0,0,0,.85);
    border: 1px solid rgba(255,79,216,.35);

    border-radius: 12px;
    padding: 12px 16px;

    transform: translateX(120%);
    opacity: 0;

    transition:
        transform .35s ease,
        opacity .35s ease;

    z-index: 9999;
}

#toast.show {
    transform: translateX(0);
    opacity: 1;
}

.loading-btn {
    opacity: .8;
    pointer-events: none;
}

.loading-btn::after {
    content: "";

    width: 14px;
    height: 14px;

    margin-left: 10px;

    border: 2px solid rgba(255,255,255,.4);
    border-top-color: white;

    border-radius: 50%;

    display: inline-block;

    animation: spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.question-sub {
    text-align: center;
    color: rgba(255,255,255,.72);

    line-height: 1.6;

    margin-bottom: 20px;
}

.submit-note {
    margin-top: 12px;

    text-align: center;

    font-size: 12px;
    font-style: italic;

    color: rgba(255,255,255,0.55);

    line-height: 1.5;
}