:root{
    --topnavbar-height: 4rem;
    --searchbar-height: calc(var(--topnavbar-height)*1.8);
    --bottombar-height: 8rem;
    --card-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    --main-border-width: 5rem;
    --base-orange: rgb(224, 94, 51);
    --base-grey: rgb(76, 87, 86);
    --base-green:#3ca0a0;
}
html{
    height: calc(100vh - var(--main-border-width));
}

body{
    display: grid;
    flex-flow: column nowrap;
    height: calc(100% - var(--main-border-width));
    margin: 0;
    /*font-family: 'Montserrat', sans-serif;*/
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 400;
    background: rgb(26, 32, 31);
    border-image: linear-gradient(to right, #84facb 0%, var(--base-green) 51%, #84facb 100%) 1;
    border-width: var(--main-border-width);
    border-style: solid;
}
#topbar_logo {
    display: flex;
    justify-self: flex-start;
    font-family: "Nunito", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-size: 2rem;
    font-style: normal;
    align-items: center;

}
#topbar_logo a {
    display: flex;
    justify-content: center;
    height: 100%;
    align-items: center;
    margin: 0 5% auto 5%;
    font-size: 2rem;
    text-decoration: none;
}
.main_auth_container {
    display: flex;
    min-height: 80%;
    width: 100%;
}
.form_container {
    display: flex;
    flex-direction: column;
    width: 50%;
    height: 100%;
}
.welcome_text_container {
    display: flex;
    width: 50%;
    height: 100%;
    align-items: center;
    justify-content: center;
}
.welcome_container_border_overflow{
    width: 71%;
    height: 71%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(26, 32, 31);
    overflow: hidden;
}
.welcome_container_border{
    min-width: 500%;
    height: 50%;
    background-image: linear-gradient(to right, #84facb 0%, var(--base-green) 51%, #84facb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: gradientShift 8s infinite ease-in-out
}
@keyframes gradientShift {
    to { transform: rotate(360deg) }
}
.welcome_container{
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: baseline;
    justify-content: center;
    color: white;
    background-color: rgb(26, 32, 31);
    width: calc(20% - 4px);
    height: calc(200% - 6px);
    animation: countergradientShift 8s infinite ease-in-out

}
@keyframes countergradientShift {
    to { transform: rotate(-360deg) }}

.welcome_container h1{
    font-size: 3.5rem;
    margin: 0;
    padding-left: 2rem;
    padding-bottom: 1rem;
}
.white_h1{
    color: white;
}
.gradient_h1{
    background: linear-gradient(20deg, #53cbcb 0%, #84facb 30%,#84facb 70%, #53cbcb 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.auth_heading{
    display: flex;
    text-align: center;
    align-items: flex-end;
    justify-content: flex-start;
    height: auto;
}
.auth_heading h1{
    color: white;
    font-size: 4rem;
    font-weight: lighter;
    margin-top: 8rem;
    margin-left: 11%;
    margin-bottom: 0;
}
#login-hover-card{
    align-self: center;
    justify-self: center;
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.bottom_auth_link_container {
    display: flex;
    justify-content: center;
    flex-direction: row;
    margin-top: auto;
    height: auto;
    font-size: larger;
    width: 100%;
    background-color: rgb(26, 32, 31);
    color: white;
}
.bottom_auth_link_container p a{
    background: linear-gradient(to right, #84facb 0%, #6affff 51%, #84facb 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.form_{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 70%;
    height: 100%;
    padding: 3rem;
    align-items: center;
}

form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}
form h1{
    justify-self: flex-start;
}

input:focus {
    outline: none;
}
.input-wrapper {
    position: relative;
    display: flex;
    width: 80%;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: 0.5rem 0 0.5rem 0;
    outline: none;
    border-radius: 20px;
}
.input-wrapper input {
    display: flex;
    box-sizing: border-box;
    font-size: larger;
    background-color: var(--base-grey);
    color: white;
    outline: none;
    border: none;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    padding: 1.5rem 1.2rem 0 1.2rem;
    transition: .2s ease all;
    &:focus{
        box-shadow: 0 1px 0 0 rgb(75, 75, 75);
    }
    &::placeholder {
        color: transparent;
      }
}

.input-wrapper label {
    position: absolute;
    top: 38%;
    left: 1.2rem; /* Same as input padding-left */
    color: rgb(168, 168, 168);
    pointer-events: none;
    transition: transform 250ms;
    transform-origin: left;
    font-size: 1.3rem; /* Use rem for responsive font sizing */
}

.input-wrapper input:focus + .label,
.input-wrapper input:not(:placeholder-shown) + .label {
    transform: translateY(-70%) scale(0.85); /* Shrink the label when the input is focused or has text */
}

.input-wrapper input[type="submit"]{
    padding: 1.5rem;
    background-size: 200% auto;
    background-image: linear-gradient(to right, #84fab0 0%, var(--base-green) 51%, #84fab0 100%);
    color: white;
    text-align: center;
    cursor: pointer;
    transition: .2s ease all;
    background-position: right center;
    &:hover{
        background-position: left center;
    }
}
.name-input{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 80%;
}
.name-input .input-wrapper{
    width: 48%;
}
.otp-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 80%;
    color: white;
}
.otp-container img{
    width: 30%;
    margin-bottom: 1rem;
}
.otp-container h2{
    font-weight: lighter;
    font-size: 0.7rem;
    margin-bottom: 0;
    min-width: 100%;
}
.error-container{
    position: fixed;
    display: flex;
    top: 5vh;
    left: 50vw;
    transform: translate(-50%, 0);
    z-index: 999;
    
    background-color: rgb(255, 72, 72);
    border-radius: 0.375rem;
    box-shadow: var(--card-box-shadow);
    
    transform-origin:0;
    visibility: hidden;
    animation: error_popup .2s ease-out .1s forwards;
}
.success-container{
    position: fixed;
    display: flex;
    top: 5vh;
    left: 50vw;
    transform: translate(-50%, 0);
    z-index: 999;
    
    background-color: rgb(0, 182, 30);
    border-radius: 0.375rem;
    box-shadow: var(--card-box-shadow);
    
    transform-origin:0;
    visibility: hidden;
    animation: error_popup .2s ease-out .1s forwards;
}
@keyframes error_popup{
    0%   {     
    scale: 0%;
    visibility: visible;
    }
    80%   {
    scale: 110%;
    visibility: visible;
    }
    100% { 
    scale: 100%;
    visibility: visible;
    } 
}
.flashes{
    padding: 0.45rem 1.5rem 0.45rem 1.5rem;
    color: white;
    list-style-type: none;
}