﻿/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap");
/*===== VARIABLES CSS =====*/
:root {
    --first-login-color: #1A73E8;
    --input-login-color: #80868B;
    --border-login-color: #DADCE0;
    --normal-login-font-size: 1rem;
    --small-login-font-size: .75rem;

    --first-color: #1A73E8;
    --input-color: #80868B;
    --border-color: #DADCE0;
    --normal-font-size: 1rem;
    --small-font-size: .7rem;
}
/*===== BASE =====*/
*,::before,::after{
  box-sizing: border-box;
}

.form__div {
    position: relative;
    height: 48px;
    margin-bottom: 1.5rem;
}
.form_login_div {
    position: relative;
    height: 48px;
    margin-bottom: 1rem;
}

.form__input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: var(--normal-font-size);
    border: 1px solid var(--border-color);
    border-radius: .5rem;
    outline: none;
    padding: 1rem;
    background: none;
    z-index: 1;
    background-color:white;
}
.form_login_input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: var(--normal-font-size);
    border: 1px solid var(--border-color);
    border-radius: .5rem;
    outline: none;
    padding: 1rem;
    background: none;
    z-index: 1;
}

.form__label {
    border:none;
    position: absolute;
    left: 1.8rem;
    top: 1.7rem;
    padding: 0 .25rem;
    background-color: none;
    color: var(--input-color);
    font-size: var(--normal-font-size);
    transition: .3s;
    z-index:10;
    pointer-events:none;
}
.form__label.required::after {
    content: "*";
    /*color: red;*/
}

.form_login_label {
    border: none;
    position: absolute;
    left: .5rem;
    top: .75rem;
    padding: 0 .25rem;
    background-color: white;
    color: var(--input-color);
    font-size: var(--normal-font-size);
    transition: .3s;
}

/*Input focus move up label*/
.form__input:focus + .form__label {
    /*border: 1px solid #DEE2E6;*/
    top: 1rem;
    left: 1.8rem;
    color: var(--first-color);
    font-size: var(--small-font-size);
    font-weight: 500;
    z-index: 10;
}
.form_login_input:focus + .form_login_label {
    border: 1px solid #DEE2E6;
    top: -.5rem;
    left: .5rem;
    color: var(--first-color);
    font-size: var(--small-font-size);
    font-weight: 500;
    z-index: 10;
}

/*Input focus sticky top label*/
.form__input:not(:placeholder-shown).form__input:not(:focus) + .form__label {
    top: 1rem;
    left: 1.8rem;
    font-size: var(--small-font-size);
    font-weight: 500;
    z-index: 10;
    color: var(--first-color);
}
.form_login_input:not(:placeholder-shown).form_login_input:not(:focus) + .form_login_label {
    top: -.5rem;
    left: .5rem;
    font-size: var(--small-font-size);
    font-weight: 500;
    z-index: 10;
}

/*Input focus*/
.form__input:focus{
  border: 1.5px solid var(--first-color);
}
.form_login_input:focus {
    border: 1.5px solid var(--first-color);
}