﻿@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500&display=swap');



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'montserrat';
}


body {
    min-height: 100vh;
    background-image: linear-gradient(120deg, #0094ff, #8e4499);
}

.login-form {
    width: 360px;
    background: #f1f1f1;
    height: 580px;
    padding: 70px 40px;
    border-radius: 10px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.login-form h3 {
    color: #0094ff;
    font-size: 14px;
    text-align: center;
    margin-bottom: 10px;
}

.login-form h1 {
    text-align: center;
    margin-bottom: 60px;
}

.txtb {
    border-bottom: 2px solid #adadad;
    position: relative;
    margin: 30px 0px 0px 0;
}

.txtb input {
    font-size: 15px;
    color: #333;
    border: none;
    width: 100%;
    outline: none;
    background: none;
    padding: 0 8px;
    height: 40px;
    position: relative;
    z-index: 0;
}

/* Override Chrome autofill background color */
.txtb input:-webkit-autofill,
.txtb input:-webkit-autofill:hover,
.txtb input:-webkit-autofill:focus,
.txtb input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #f1f1f1 inset !important;
    -webkit-text-fill-color: #333 !important;
    background-color: transparent !important;
    background: none !important;
    animation-name: onAutoFillStart;
    animation-duration: 0.001s;
}

/* Animation to detect autofill */
@keyframes onAutoFillStart {
    from {
        opacity: 0;
    }

    to {
        opacity: 0;
    }
}

.txtb span::before {
    content: attr(data-placeholder);
    position: absolute;
    top: 80%;
    left: 5px;
    color: #adadad;
    transform: translateY(-80%);
    z-index: -1;
    pointer-events: none;
    transition: .5s;
    background-color: #f1f1f1;
    padding: 0 0px;
}

.txtb span::after {
    content: '';
    position: absolute;
    width: 0%;
    top: 100%;
    left: 0px;
    height: 2px;
    background: linear-gradient(120deg, #0094ff, #8e4499);
    transition: .5s;
}

.focus+span::before {
    top: 5px;
    z-index: 1;
}

.focus+span::after {
    width: 100%;
}

/* Move label up when input is autofilled */
.txtb input:-webkit-autofill+span::before {
    top: 5px !important;
    z-index: 1 !important;
}

.txtb input:-webkit-autofill+span::after {
    width: 100% !important;
}

.loginbtn {
    display: block;
    width: 100%;
    height: 50px;
    border: none;
    background: linear-gradient(120deg, #0094ff, #8e4499);
    background-size: 400%;
    color: #fff;
    outline: none;
    cursor: pointer;
    transition: .5s;
}

.loginbtn:hover {
    background-position: right;
}


.bottom-text {
    margin-top: 50px;
}

.text-danger {
    color: red;
}

.validation {
    font-size: 12px !important;
    display: block;
    margin-top: 5px;
    margin-bottom: 5px;
    padding-left: 5px;
}