@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&display=swap');

* {
    line-height: 1.2;
    margin: 0;
}

body {
    font-family: "Red Hat Display", sans-serif;
    background-image: url('/view/jmp/auth/img/smartt-re-bg-loginForm.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    height: 100vh;
} 

.login-form {
    width: 450px;
    margin-left: 50%; 
    height: 100%;
    padding: 30px 25px;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.login-form__logo {
    text-align: end;
    margin-bottom: 100px;
    margin-right: -78px;
    opacity: 1;
    transition: .4s;
}

.login-form__logo:hover {
    opacity: 0.8;
}

.login-form__title {
    overflow: hidden;
    background: url("/view/jmp/auth/img/line_black.png") no-repeat;
    background-position: 0 50%;
    color: #000;
    transition: .2s;
}

.login-form__title:hover {
    color: #5E6E65;
}

.login-form__title:hover h1, .login-form__title:hover h2 {
    margin: 24px 24px 24px 65px;
}

.login-form__title h1, .login-form__title h2 {
    font-size: 28px;
    line-height: 40px;
    margin: 24px 24px 24px 60px;
    transition: .2s;
}

#loginForm {
    width: 100%;
}

.fw-bold {
    font-weight: 700 !important;
}

.modal-content {
    border-radius: 0;
    border: none;
}

.btn-closeModal {
    position: absolute;
    top: -43px;
    right: -38px;
    width: 30px;
    height: 30px;
    background-image: url("/view/jmp/auth/img/btn-close.png");
    background-position: center;
    border: 0;
    border-radius: 0;
    background-repeat: no-repeat;
    opacity: .8;
}

.btn-closeModal:hover {
    opacity: 1;
}

input.floating.is-invalid {
    border-bottom: solid 1px red;
}

.form-control.floating:not(:placeholder-shown),
.form-control.floating:-webkit-autofill {
    height: 55px;
}

.form-control.floating:not(:placeholder-shown) ~ label,
.form-control.floating:-webkit-autofill ~ label {
    transform: translate(1px,-100%) scale(0.80);
    opacity: 1;
}

input.floating:-webkit-autofill {
    height: 55px !important;
}

input.floating:-webkit-autofill ~ label {
    transform: translate(1px,-100%) scale(0.80) !important;
    opacity: 1 !important;
}

input.floating {
    background-color: #f1f1f1;
    font-weight: 500;
    font-size: 16px;
    line-height: 45px;
    color: #000;
    height: 45px;
    cursor: pointer;
    padding: 10px 15px 0 15px;
    margin: 0 0 3px 0;
    border-bottom: solid 1px #000;
    border-top: none;
    border-left: none;
    border-right: none;
    border-radius: 0;
    transition: .2s;
    position: relative;
}

.form-group.floating {
    position: relative;
}

.form-group.floating > label {
    position: absolute;
    left: 8px;
    bottom: 15px;      
    margin-bottom: 0;    
    background-color: transparent;
    padding: 0 5px;
    font-size: 1em;
    transition: 0.1s;
    pointer-events: none;
    font-weight: 500 !important;
    transform-origin: bottom left;
}

a {
    text-decoration: underline;
    color: #5E6E65;
}

input.floating:focus {
    outline: none;
    box-shadow: none;
    background-color: #f1f1f1;
    border-bottom: solid 1px #5E6E65;
    height: 55px;
}

.form-password.floating #togglePassword, .form-password.floating #togglePasswordRe {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    padding: 10px;
}

.form-group.floating.form-password input.is-invalid ~ #togglePassword, .form-group.floating.form-password input.is-invalid ~ #togglePasswordRe {
    right: 20px;
}

.form-control.floating:focus~label{
    transform: translate(1px,-100%) scale(0.80);
    opacity: 1;
    color: #5E6E65;
}

.form-control.floating:valid {
    height: 55px;
}

.form-control.floating:valid~label{
    transform-origin: bottom left;
    transform: translate(1px,-100%) scale(0.80);
    opacity: 1;
}

.btn-link {
    padding: 0;
    text-decoration: underline;
    color: #5E6E65;
}

.btn-lines {
    height: 30px;
    background: url("/view/jmp/auth/img/line_black.png") no-repeat;
    background-position: 0 50%;
    padding: 0;
    transition: all 150ms ease-out;
}

.btn-lines span {
    font-weight: 500;
    font-size: 20px;
    line-height: 30px;
    color: #000;
    text-align: left;
    padding: 0 60px 0 60px;
    height: 30px;
    display: block;
    text-decoration: none;
}

.btn-lines:focus {
    outline: none;
    box-shadow: none;
}

.btn-lines:hover {
    background-position: 100% 50%;
}

.xsmall {
    font-size: 0.75rem !important;
}

.bottom-0 {
    bottom: 0 !important;
}

.absolute-center-x {
    left: 50%;
    transform: translateX(-50%);
}

@media only screen and (max-width: 280px) {
    body,
    p {
        width: 95%;
    }
}