@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

body {
    background-color: #1E1E20;
    color: #717171;
    font-family: Inter;
    margin: 0;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

    body::after,
    body::before {
        position: absolute;
        width: 200px;
        height: 200px;
        content: '';
        background-color: #717171;
        top: 0;
        right: 0;
        border-radius: 10px 30px 600px 100px;
        filter: blur(100px);
        pointer-events: none;
    }

    body::after {
        top: unset;
        right: unset;
        bottom: 0;
        left: 0;
        border-radius: 100px 30px 600px 100px;
    }

* {
    padding: 0;
    margin: 0;
    list-style: none;
}

.logo img {
    margin-left: 7px;
    width: 53px;
    opacity: .4;
}

.logo {
    width: 60px;
    height: 60px;
    margin: auto;
    background-color: #2C2C2E;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    box-shadow: 0 10px 30px #0004;
    margin-bottom: 30px;
}

h1 {
    font-weight: 500;
    color: #fff;
    font-size: x-large;
    margin-bottom: 10px;
}

.text-white {
    color: #fff;
}

form {
    display: flex;
    margin: auto;
    margin-block: 30px;
    width: min(300px, 90vw);
    gap: 15px;
    flex-wrap: wrap;
}

    form input,
    form button {
        all: unset;
        padding: 10px;
        border-radius: 15px;
        background-color: #1C1C1E;
        box-shadow: 0 10px 30px #0005;
        border: 1px solid #71717188;
        transition: background-image 0.5s, opacity .5s, border .5s;
    }

    form * {
        width: 100% !important;
    }

    form input {
        color: #fff;
    }

    form button {
        cursor: pointer;
    }

        form button[type="submit"] {
            background-color: #fff;
            color: #1C1C1E;
        }

.or {
    position: relative;
}

    .or::before {
        position: absolute;
        width: 100%;
        height: 1px;
        content: '';
        left: 0;
        top: 45%;
        background-image: linear-gradient( to right, #71717155 0 40%, transparent 40% 60%, #71717155 60% );
    }

p a {
    border-bottom: 1px solid #717171;
}

input + p {
    font-size: small;
    text-align: left;
}

.sso {
    margin-bottom: 30px;
}

    .sso + p {
        font-size: small;
    }

input:invalid:not(:placeholder-shown) {
    border-color: red;
    background-image: url(../images/checked_red.png);
}

input:valid:not(:placeholder-shown) {
    background-image: url(../images/checked_green.png);
}

input:invalid:not(:placeholder-shown),
input:valid:not(:placeholder-shown) {
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: calc(100% - 10px);
}

    input:invalid:not(:placeholder-shown) + p {
        color: #a20e0e;
    }

input:invalid ~ button[type="submit"] {
    opacity: .6;
    pointer-events: none;
}






@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(28px) scale(.98);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.ani {
    opacity: 0;
    animation: fadeInUp 0.62s cubic-bezier(.43,1.2,.62,1) forwards;
}

.ani-logo {
    animation-delay: 0.10s;
}

.ani-title {
    animation-delay: 0.27s;
}

.ani-subtitle {
    animation-delay: 0.36s;
}

.ani-form {
    animation-delay: 0.44s;
}

.ani-input-1 {
    animation-delay: 0.56s;
}

.ani-input-2 {
    animation-delay: 0.66s;
}

.ani-btn {
    animation-delay: 0.77s;
}

.ani-or {
    animation-delay: 0.87s;
}

.ani-sso {
    animation-delay: 0.97s;
}

.ani-terms {
    animation-delay: 1.07s;
}

.ani-btn,
.ani-sso {
    transition: transform .17s cubic-bezier(.43,1.2,.62,1), box-shadow .17s;
    will-change: transform;
}

    .ani-btn:hover,
    .ani-sso:hover {
        transform: scale(1.045) translateY(-2px);
        box-shadow: 0 4px 18px #19cbaa24;
    }






/* Pulsing animation for loading text */
.btn-text.pulsing {
    animation: textPulse 0.85s cubic-bezier(.61,-0.15,.45,1.36) infinite alternate;
}

@keyframes textPulse {
    0% {
        opacity: 0.75;
        letter-spacing: 0.01em;
    }

    60% {
        opacity: 1;
        letter-spacing: 0.045em;
    }

    100% {
        opacity: 0.84;
        letter-spacing: 0.01em;
    }
}









/* Validation summary hidden when valid */
.validation-summary.validation-summary-valid {
    display: none !important;
}

/* Base style for the box */
.validation-summary {
    background: linear-gradient(110deg, #fff5f5 60%, #ffe7e7 100%);
    border: 1.5px solid #ffc8c8;
    color: #d02737 !important;
    font-size: 1.01em;
    border-radius: 13px;
    padding: 16px 20px 16px 58px;
    margin-bottom: 16px;
    margin-top: 8px;
    box-shadow: 0 2px 14px #ffb7ba19;
    text-align: left;
    font-weight: 500;
    position: relative;
    min-height: 40px;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(-12px) scale(.98);
    pointer-events: none;
    transition: opacity .34s cubic-bezier(.53,1.54,.54,1), transform .28s cubic-bezier(.63,1.44,.36,1.19);
}

    /* Only show and animate when errors present */
    .validation-summary:not(.validation-summary-valid) {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0) scale(1);
        /* Shake 2 times horizontally when visible */
        animation: errorShake 0.55s cubic-bezier(.13,.65,.43,1.17) 1;
    }

@keyframes errorShake {
    0% {
        transform: translateY(0) translateX(0);
    }

    12% {
        transform: translateY(0) translateX(-10px);
    }

    25% {
        transform: translateY(0) translateX(10px);
    }

    37% {
        transform: translateY(0) translateX(-10px);
    }

    50% {
        transform: translateY(0) translateX(10px);
    }

    62% {
        transform: translateY(0) translateX(-7px);
    }

    75% {
        transform: translateY(0) translateX(7px);
    }

    87% {
        transform: translateY(0) translateX(-3px);
    }

    100% {
        transform: translateY(0) translateX(0);
    }
}

/* Animated icon for errors */
.validation-summary:not(.validation-summary-valid)::before {
    content: "";
    display: inline-block;
    position: absolute;
    left: 18px;
    top: 17px;
    width: 23px;
    height: 23px;
    background: url('data:image/svg+xml;utf8,<svg fill="none" stroke="%23d02737" stroke-width="1.8" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="10" fill="%23ffeaea"/><path d="M12 8v4m0 4h.01" stroke-linecap="round"/></svg>') no-repeat center center;
    background-size: 23px 23px;
    opacity: 0.97;
    filter: drop-shadow(0 2px 7px #ffdbdb);
    animation: iconPop 0.44s cubic-bezier(.41,1.6,.43,.99);
}

@keyframes iconPop {
    0% {
        transform: scale(0.22);
        opacity: 0;
    }

    60% {
        transform: scale(1.12);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.97;
    }
}

/* "No, try again!" feedback message */
.validation-summary:not(.validation-summary-valid)::after {
    content: "Try again!";
    display: block;
    font-weight: 700;
    font-size: 1.06em;
    color: #d02737;
    margin-bottom: 3px;
    letter-spacing: .02em;
    margin-top: -8px;
    margin-left: -3px;
    animation: errMsgPop .57s cubic-bezier(.48,1.8,.36,1.2);
}

@keyframes errMsgPop {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    60% {
        opacity: 1;
        transform: scale(1.09);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}





.big404 {
    font-size: 6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6868ff 20%, #00faff 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    letter-spacing: 0.06em;
    animation: big404pop 0.7s cubic-bezier(.53,1.55,.54,1.01);
}

@keyframes big404pop {
    0% {
        opacity: 0;
        transform: scale(.6) translateY(-80px);
    }

    80% {
        opacity: 1;
        transform: scale(1.12) translateY(8px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.notfound-subtitle {
    font-size: 1.45rem;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 500;
    animation: fadeInUp 0.7s 0.23s both cubic-bezier(.43,1.2,.62,1);
}

.notfound-desc {
    color: #b4d6e5;
    font-size: 1.1rem;
    margin-bottom: 32px;
    animation: fadeInUp 0.7s 0.32s both cubic-bezier(.43,1.2,.62,1);
}

.home-btn {
    background: linear-gradient(135deg, #6868ff 0%, #00faff 90%);
    color: #fff;
    font-weight: 700;
    padding: 12px 40px;
    border: none;
    border-radius: 16px;
    box-shadow: 0 6px 24px #00faff22, 0 2px 8px #574aff18;
    font-size: 1.08rem;
    transition: background .21s, box-shadow .21s, transform .13s;
    cursor: pointer;
    outline: none;
    animation: fadeInUp 0.7s 0.38s both cubic-bezier(.43,1.2,.62,1);
}

    .home-btn:hover {
        background: linear-gradient(135deg, #7b5fff 8%, #13fff8 92%);
        box-shadow: 0 9px 32px #07ecff54, 0 1.5px 10px #554aff22;
        transform: scale(1.06) translateY(-2px);
        filter: brightness(1.09) saturate(1.11);
    }

.logo404 {
    width: 58px;
    height: 58px;
    background: #24243e;
    border-radius: 12px;
    margin: 28px auto 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px #0004;
}