
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

h1, h2, h3, h4, h5, h6, p {
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

html, body{
    width: 100%;
    height: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    border: 0;
    padding: 0;
    background: none;
    cursor: pointer;
}

:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

body.login .inputs {
    display: flex;
    flex-direction: column;
    gap: 14px;

    padding: 28px;

    background: rgba(15, 15, 18, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;

    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);

    padding: 3rem;
}


/* INPUTS */
.inputs input:not(#submit) {
    width: 100%;
    height: 48px;

    padding: 0 16px;

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

    background: rgba(0, 0, 0, 0.25);

    color: white;
    font-size: 15px;

    outline: none;

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

    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.05);

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


/* PLACEHOLDER */
.inputs input:not(#submit)::placeholder {
    color: rgba(255, 255, 255, 0.5);
}


/* FOCUS */
.inputs input:not(#submit):focus {
    background: rgba(255, 255, 255, 0.08);

    border-color: rgba(255, 255, 255, 0.35);

    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.06),
        inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

.inputs::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.25),
        transparent 40%
    );

    pointer-events: none;

    border-radius: 6%;
}

body.login .bground{
    background: url("/img/login-bg-v1") center / cover no-repeat;
    position: absolute;
    top:0; inset: 0;
}


#submit {
    width: 100%;
    padding: 14px 20px;

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;

    background: rgba(15, 15, 18, 0.65);
    color: #fff;

    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);

    font-size: 16px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

#submit:hover {
    background: rgba(30, 30, 35, 0.8);

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);

    transform: translateY(-1px);
}

#submit:active {
    transform: scale(0.98);
}


/* =========================
   LOGIN MESSAGE
========================= */

.message {

    display: none;

    width: 100%;

    padding: 12px 14px;

    margin-top: 2px;
    margin-bottom: 2px;

    border-radius: 12px;

    font-size: 14px;

    line-height: 1.4;
}

.message.error {

    display: block;

    background: rgba(255, 70, 70, 0.12);

    border: 1px solid rgba(255, 70, 70, 0.25);

    color: #ff9a9a;
}

.message.success {

    display: block;

    background: rgba(70, 220, 130, 0.12);

    border: 1px solid rgba(70, 220, 130, 0.25);

    color: #8ff0b2;
}

/* DEV */
#badgeDEV {
    position: absolute;top: 0;left: 0;width: 100%;background: #830000;z-index: 999;display: flex;justify-content: center;
    padding: 0.75rem;font-weight: bold; font-size: 1.25rem;color: wheat;
}