:root{
    --lightBrown : #e8b39b;
    --darkblue : #5f72ad;
    --formSpacing : 2.5rem;
    --fontSize : 18px;
    --iconWidth : 2rem;
    --popupPointiWidth : 18px;
}

@font-face {
    font-family: "lobster";
    src: url("../assets/fonts/KaushanScript-Regular.ttf") format('truetype');
}

html{
    /*background: linear-gradient(-45deg,var(--lightBrown),var(--darkblue));*/
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    display: grid;
    font-family: 'Roboto Light', sans-serif;
    place-content: center;
    height: 100%;
    margin: 0;
    padding: 0;
    background-image: url("/assets/images/background_medium.jpg");
    background-position: center;
    background-size: cover;
}

.title {
    color: white;
    font-family: lobster, system-ui;
    font-size: 72px;
    letter-spacing: 2px;
    text-align: center;
    margin: 1rem auto;
    display: inline-flex;
}

.title div{
    padding: 0;
    transform-origin: bottom;
    transition: all 500ms ease-in-out;
    transform: rotateX(-90deg);

}
.title div.show{
    transform: rotateX(0deg);
}

/* Formular */
.LoginForm{
    background-color: rgba(0,0,0,0.3);
    border-radius: 2px;
    padding: 2rem;
    /*box-shadow: 0 0 10px 0 white;*/
    border: 1px solid white;
    backdrop-filter: blur(2px);
}

/* Submit Button */
input[name = submit]{
    width: 100%;
    border-radius: 2px;
    color: black;
    border: 0 solid black;
    padding: 0.5rem;
    /*text-transform: uppercase;*/
    font-family: lobster, system-ui;
    font-size: 20px;
    transition: all 200ms;
    background-color: white;
}
input[type="submit"]:hover {
    cursor: pointer;
    background-color: #62b6f1;
    color: white;
}

input[disabled=disabled]{
    background: #a4a4a4;
}
input[disabled=disabled]:hover{
    cursor: unset;
    background: #a4a4a4;
    color: black;
}

/* Input Wrapper*/
.inputWrapper{
    position: relative;
    width: 100%;
    display: block;
    margin-bottom: var(--formSpacing);
}
.inputWrapper:first-child{
    margin-top: var(--formSpacing);
}
.inputWrapper:last-child{
    margin: 0;
}
.inputWrapper:focus-within {
    color: red;
}
.inputWrapper[data-error = "error"] > .icon {
    background: #ff6a6a;
}
.inputWrapper[data-error = "attention"] > .icon {
    background: #fff36a;
}
.inputWrapper[data-error = "good"] > .icon {
    background: #adff6a;
}

/* Inputs */
input{
    display: block;
    font-size: var(--fontSize);
    padding: 5px;
    margin: 0;
    font-family: Roboto sans-serif;
    color: black;
}
input[type = text],
input[type = email],
input[type = password]{
    padding-left: calc(var(--iconWidth) + 0.8rem);
    background-color: transparent;
    border: 1px solid white;
    border-radius: 2px;
    color: white;
    width: 100%;
    box-sizing: border-box;
}
input:focus-visible{
    outline-width: 0;
    border-color: var(--lightBrown);
}


/* Label of the Inputs*/
.inputLabel{
    position: absolute;
    display: block;
    top: calc(var(--fontSize)*-1.4);
    color: white;
    font-size: var(--fontSize);
    width: 100%;
    text-align: center;
}

/* Icon of the Inputs*/
.icon {
    display: grid;
    place-items: center;
    height: calc(100% - 2px);
    position: absolute;
    width: var(--iconWidth);
    background-color: white;
    margin: 1px;
    /*border-style: solid;*/
    /*border-color: white;*/
    /*border-width: 1px 0 1px 1px;*/
    /*border-radius: 2px 0 0 2px;*/
}

/* the error message*/
.error_message{
    color: #fffa6c;
    width: 100%;
    text-align: center;
    position: absolute;
    font-weight: bold;
    display: block;
    top: calc(var(--fontSize) * -1.3);
    margin: 0;
}

/* Popups */

.popup{
    display: none;
}

.popup.visible{
    position: absolute;
    display: block;
    background: #ffffff;
    bottom: 150%;
    text-align: center;
    min-height: 1rem;
    min-width: 2.1rem;
    color: black;
    border-radius: 2px;
    padding: 0.5rem;
    box-shadow: 0 0 10px 0 black;
}
.popup.visible:after{
    content: "";
    position: absolute;
    left: calc(var(--iconWidth) / 2 - var(--popupPointiWidth) / 2);
    bottom: calc(var(--popupPointiWidth) / -2);
    width: var(--popupPointiWidth);
    height: var(--popupPointiWidth);
    display: block;
    background: #ababab;
    transform: rotate(45deg);
    z-index: -1;
}


/* ANIMATIONS */











































