﻿body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    background-image: url('../img/login-bg.jfif');
    background-position: center;
    background-size: cover;
}

* {
    margin: 0;
    padding: 0;
    font-family: "Inter", "sans-serif";
    box-sizing: border-box;
}

.box {
    position: relative;
    width: 100%;
    height: 500px;
    /*background: #003a66 !important;*/
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(15px);
}

@keyframes animate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.form {
    position: absolute;
    inset: 2px;
    /*border-radius: 8px;*/
    /*background: lab(18 -3.44 -18.58);*/
    z-index: 10;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;

}

    .form h2 {
        color: white;
        font-weight: 500;
        text-align: center;
        letter-spacing: 0.1em;
    }

.inputBox {
    position: relative;
    width:100%;
    margin-top: 28px;
}

    .inputBox input {
        position: relative;
        width: 100%;
        padding: 20px 10px 10px;
        background: transparent;
        border: none;
        outline: none;
        color: black;
        font-size: 1em;
        letter-spacing: 0.1em;
        z-index: 10;
    }

    .inputBox span {
        position: absolute;
        left: 0;
        padding: 20px 0px 10px;
        font-size: 1em;
        color: white;
        pointer-events: none;
        letter-spacing: 0.05em;
        transition: 0.5s;
    }

    .inputBox input:valid ~ span,
    .inputBox input:focus ~ span {
        color: white;
        transform: translateX(0px) translateY(-34px);
        font-size: 0.95em;
    }

    .inputBox i {
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 2px;
        background: lightgrey;
        border-radius: 4px;
        transition: 0.5s;
        pointer-events: none;
    }

    .inputBox input:valid ~ i,
    .inputBox input:focus ~ i {
        height: 44px;
    }

    .inputBox input:-webkit-autofill ~ span {
        color: white;
        transform: translateX(0px) translateY(-34px);
        font-size: 0.95em;
    }


    .inputBox input:-webkit-autofill {
        -webkit-text-fill-color: black !important;
        transition: background-color 5000s ease-in-out 0s;
    }

.links {
    display: flex;
    justify-content: space-between;
}

    .links a {
        margin: 10px 0;
        font-size: 0.96em;
        color: #8f8f8f;
        text-decoration: none;
    }

        .links a:hover,
        .links a:nth-child(2) {
            color: #ffa300 !important;
        }

input[type="submit"] {
    border: none;
    outline: none;
    background: #ffa300 !important;
    padding: 11px 25px;
    color:white;
    width: 100px;
    margin-top: 10px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

    input[type="submit"]:active {
        opacity: 0.8;
    }


.field-validation-error {
    color: #db2525;
    z-index: 11;
    position: relative;
    font-size: 15px;
}

