/* =========================
   RESET + ROOT VARIABLES
========================= */

:root {
    --bg: #000;
    --primary: #00fff2;
    --primary-dim: rgba(0, 255, 242, 0.5);
    --primary-soft: rgba(0, 255, 242, 0.12);

    --glass: rgba(0, 0, 0, 0.72);
    --input-bg: rgba(0, 0, 0, 0.85);

    --border: rgba(0, 255, 242, 0.4);

    --radius: 18px;
    --radius-sm: 8px;

    --shadow:
        0 0 10px rgba(0, 255, 242, 0.2),
        0 0 25px rgba(0, 255, 242, 0.15);

    --transition: 0.25s ease;
    --font: 'Fredoka', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* =========================
   BASE
========================= */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 16px;

    overflow-x: hidden;

    background: var(--bg);
    color: var(--primary);

    font-family: var(--font);
}

/* =========================
   BACKGROUND GRID
========================= */

.grid {
    position: fixed;
    inset: 0;
    z-index: 0;

    width: 200%;
    height: 200%;

    background:
        linear-gradient(rgba(10, 243, 231, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 242, 0.07) 1px, transparent 1px);

    background-size: 40px 40px;
}

/* =========================
   LAYOUT
========================= */

.container {
    position: relative;
    z-index: 2;

    width: 100%;
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 20px;
}

.form-box {
    position: relative;
    overflow: hidden;
    z-index: 2;

    width: 100%;
    max-width: 600px;

    padding: 40px;

    border: 1px solid var(--primary);
    border-radius: var(--radius);

    background: var(--glass);

    /*--backdrop-filter: blur(8px);*/

    box-shadow: var(--shadow);
}

/* =========================
   SCAN EFFECT
========================= */

.form-box::before {
    content: "";

    position: absolute;
    inset: -120% 0 auto;

    width: 100%;
    height: 240%;

    background: linear-gradient(to bottom,
            transparent,
            var(--primary-soft),
            transparent);

    animation: scan 5s linear infinite;

    pointer-events: none;
}

@keyframes scan {
    to {
        transform: translateY(100%);
    }
}

/* =========================
   LOGO
========================= */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo-fixed {
    display: block;
    margin: auto;
    height: 300px;
    z-index: 2;

    filter:
        drop-shadow(0 0 5px #00fff2) drop-shadow(0 0 3px #00fff2) drop-shadow(0 0 2px rgba(0, 255, 242, 0.6));
}

/* =========================
   TYPOGRAPHY
========================= */

h1,
h2 {
    position: relative;
    z-index: 2;
    text-align: center;
    text-shadow: 0 0 10px var(--primary);
    font-family: var(--font);
}

h1 {
    margin-bottom: 20px;

    font-size: clamp(5rem, 10vw, 9rem);

    letter-spacing: 4px;
}

h2 {
    margin-bottom: 20px;

    font-size: clamp(1.2rem, 4vw, 1.5rem);

    letter-spacing: 3px;
}

label {
    display: block;

    margin-bottom: 10px;

    font-size: 1rem;
    font-weight: 500;
    font-family: var(--font);
}

/* =========================
   FORM ELEMENTS
========================= */

button {
    position: relative;
    z-index: 2;

    padding: 14px;
    margin-bottom: 14px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition:
        background var(--transition),
        color var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

/* =========================
   BUTTON
========================= */

button {
    width: fit-content;
    margin: 20px auto 0;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    font-family: var(--font);
}

button:hover,
button:active {
    background: var(--primary);
    color: #000;

    box-shadow: 0 0 15px var(--primary);
}

.button-wrapper {
    display: flex;
    justify-content: center;
}



/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    body {
        padding: 10px;
    }

    .container {
        padding: 10px;
    }

    .form-box {
        padding: 18px;
        border-radius: 14px;
    }

    h1 {
        letter-spacing: 2px;
    }

    h2 {
        letter-spacing: 2px;
    }
}

/* =========================
   ACCESSIBILITY
========================= */

@media (prefers-reduced-motion: reduce) {

    .grid,
    .form-box::before {
        animation: none;
    }

    * {
        scroll-behavior: auto;
    }
}