body {
    background-image: url('/static/images/bg.webp');
    background-size: cover;
    background-repeat: no-repeat;
    --height: 100%;
    font-family: 'Bonnie', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: #1D252C;
    background-color: #252525;
    text-rendering: optimizeLegibility; /* Improve text rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -moz-font-smoothing: antialiased;
    overflow-y: scroll;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 100px;
}

#content {
    display: flex;
    width: 388px;
    min-height: 500px;
    background-color: rgba(255, 255, 255, 0.3);
    justify-self: center;
    border-radius: 8px;
    overflow: clip;
    flex-direction: column;
    background-color: #fff;
}

#login {
    display: flex;
    flex-direction: column;
    padding: 40px;
}

#tb {
    display: flex;
    flex-direction: column;
}

#tb .title {
    display: flex;
    flex-grow: 1;
    font-size: 28px;
    font-weight: 700;
    color: #1D252C;
}

#tb .subtitle {
    font-size: 14px;
    font-weight: 400;
    color: #1D252C;
    line-height: 1.57
}
#loginbox {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.g_id_signin {
    display: flex;
    justify-content: center;
    height: 44px;
}
.g_id_onload {
    display: none;
}
form {
    display: flex;
    flex-direction: column;
    gap: 17px;
}
button {
    font-weight: 500;
    font-family: 'Bonnie', sans-serif;
}
input {
    display: flex;
    flex: 1 0 0;
    padding: 12px;
    font-weight: 400;
    font-family: 'Bonnie', sans-serif;
    font-size: 16px;
    text-align: left;
    border-radius: 5px;
    border: 1px solid rgba(29,37,44,0.40);
    color: #1D252C;
}

input:invalid {
    ---box-shadow: 0 0 3px 1px red;
}

input:focus:invalid {
    box-shadow: none;
}
input:focus {
    outline: none;
    border: 1px solid rgba(29,37,44,0.80);;
}

.btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #FFCD1E;
    color: #1D252C;
    padding: 10px 25px;
    cursor: pointer;
    border: 2px solid #FFCD1E;
    border-radius: 5px;
}

.btn:hover {
    --background-color: #f3c938;
    opacity: 0.9;
}

.btn.email {
    justify-content: space-between;
}
.btn.email::before {
    justify-self: flex-start;
    content: url('../images/email.svg');
    padding-right: 5px;
    height: 24px;
    margin: -10px 0px;
}
.btn.email span {
    width: 100%;
    margin-right: 12px;
}

a.btn {
    text-decoration: none;
    padding: 6px 25px;
    font-size: 14px;
}

#logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 388px;
    background-color: #FFCD1E;
    padding:30px 0;
}

.line {
    width: 100%;
    height: 1px;
    background-color: rgba(29,37,44,0.10);
}

#terms {
    display: block;
    flex-direction: column;
    text-align: center;
    font-size: 12px;
    font-weight: 400;
    font-family: "Bonnie", sans-serif;

}
#terms a {
    color: #1D252C;
    text-decoration: underline;
    font-weight: 500;
}

.disabled, .disabled:hover {
    cursor: default;
    background-color: rgba(29, 37, 44, 0.1) !important;
    border: 1px solid rgba(29, 37, 44, 0.2) !important;
    opacity: 0.5 !important;
}

.disabled:before {
    opacity: 0.6;
}

#email{
    --background-image: linear-gradient(45deg, transparent, transparent 50%, #ffcd1e 50%, #ff0000c4 100%);
    background-size: 0.7em 0.7em;
    background-position: right top;
    background-repeat: no-repeat;
    --animation: backgroundFlash 0.7s linear infinite;
}

#password {
    padding-right: 50px;
}

@keyframes backgroundFlash {
    0% { background-image: linear-gradient(45deg, transparent, transparent 50%, #ffcd1e 50%, #ff0000c4 100%) }
    100% { background-image: linear-gradient(45deg, transparent, transparent 50%, #ffffff 50%, #ffffff 100%) }
}

.animation-disabled {
    animation: none !important;
}
.blue-corner {
    background-image: linear-gradient(45deg, transparent, transparent 50%, #04a1ea 50%, #04a1ea 100%)!important;
}

.input-box {
    display: inline-flex;
    position: relative;
}


.input-box label {
    background-color: #ffffff;
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 0px 5px;
    font-size: 16px;
    color: rgba(29, 37, 44, 0.60);
    pointer-events: none;
    transition: 0.5s;
}

.input-box input:placeholder-shown  {
    color:transparent;
}
.input-box input:placeholder-shown:focus  {
    transition: 0.7s;
    color: rgba(29, 37, 44, 0.70);
}

.input-box input:focus ~ label,
.input-box input ~ label,
.input-box input:valid ~ label {

    transition: 0.5s;
    font-size: 14px;
    color: #1D252C;
    transform: translateY(-22px) translateX(-1px);
}



.closed-eye, .eye {
    display: block;
    width: 20px;
    height: 20px;
    background-size: contain;


}
.closed-eye {
    background-image: url('/static/images/closed_eye.svg');
}

.eye {
    background-image: url('/static/images/eye.svg');
}

.password-toggle-icon {
    position: absolute;
    top: 30%;
    right: 12px;
    cursor: pointer;
}
#signup-message {
    text-align: center;
    font-size: 14px;
    color: #1D252C;
    font-weight: 400;
}
#signup-message a {
    color: #FFCD1E;
    text-decoration: underline;
    font-weight: 500;
}
.error-message {
    text-align: center;
    font-size: 12px;
    color: #f21622;
    font-weight: 400;
}
.error-message a {
    color: #1D252C;
    text-decoration: underline;
    font-weight: 500;
}

