@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700&display=swap');

:root {
    --main-clr: #81BCD3;
    --action-clr: #F7774B;
    --chill-clr: #EBF4F9;
    --strong-clr: #81BCD3;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

*::-moz-selection {
    background: var(--main-clr);
    color: #000;
}

*::selection {
    background: var(--main-clr);
    color: #000;
}

body {
    background: linear-gradient(to bottom right, var(--chill-clr), var(--strong-clr));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 100vh;
}

#logo {
    position: absolute;
    height: 70px;
    width: 170px;
    top: 0;
    left: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#logo h1 {
    font-size: 40px;
    font-weight: 300;
}

#logo svg {
    height: 40px;
    width: 40px;
}

.container {
    position: relative;
    min-height: 500px;
    width: 400px;
    max-width: 100%;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.container h1 {
    margin-bottom: 20px;
}

.container a {
    font-size: 13px;
    text-decoration: none;
    margin: 8px 0 5px;
}

.container button {
    margin-top: 10px;
    padding: 10px 45px;
    background-color: var(--action-clr);
    color: #fff;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
}

.container p {
    position: absolute;
    width: 100%;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    margin: 10px 0px;
    padding: 3px 15px;
    text-align: center;
    font-size: 14px;
    color: #000;
}

.container p .page-btn {
    font-size: 14px;
    color: var(--action-clr);
    cursor: pointer;
}

.container form {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    background-color: #fff;
}

.container input {
    width: 100%;
    margin: 8px 0;
    padding: 10px 15px;
    background-color: #fff;
    font-size: 13px;
    border: 2px solid var(--main-clr);
    border-radius: 8px;
    outline: none;
}

#password-inputs {
    width: 100%;
}

.form-container {
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
}

#pass-check {
    max-height: 0;
    width: 80%;
    overflow: hidden;
    transition: max-height 0.6s ease-out, transform 0.3s ease-out;
    transform: translateY(-20px);
    opacity: 0;
}

#pass-check.unhidden {
    max-height: 200px;
    transform: translateY(0);
    opacity: 1;
}

#pass-check ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#pass-check li {
    font-size: 12px;
}

.link-trans {
    position: relative;
    display: inline-block;
    padding: 5px 0;
    text-decoration: none;
    color: var(--action-clr);
    background-image: linear-gradient(to right, var(--action-clr), var(--action-clr) 50%, #000 50%);
    background-size: 200% 100%;
    background-position: -100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease-in-out;
}

.link-trans::before {
    content: '';
    position: absolute;
    height: 3px;
    width: 0;
    display: block;
    left: 0;
    bottom: -3px;
    background: var(--action-clr);
    transition: all 0.3s ease-in-out;
}

.link-trans:hover {
    background-position: 0;
    cursor: pointer;
}

.link-trans:hover::before {
    width: 100%;
}

#fg-pw {
    padding: 0;
}

.icon {
    color: black;
}

#flash-contain {
    position: absolute;
    height: 100px;
    width: 100%;
    top: 60px;
    left: 0;
}

.flash {
    font-size: 25px;
    text-align: center;
    padding: 5px 0;
}

.success {
    background: linear-gradient(to right, transparent, #7FB685, transparent);
    color: #fff;
}

.error {
    background: linear-gradient(to right, transparent, #EF271B, transparent);
    color: #fff;
}

@keyframes fade-out {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.fade-out {
    animation-name: fade-out;
}

.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.hidden {
    display: none;
}

