@import 'base.css';

:root {
    --login-width: 450px;
    --login-padding: 50px;
}

#koru-logo {
    width: 85px;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

h1 {
    margin-bottom: 15px;
    line-height: 1.2em;
}

/* html, body {
    width: fit-content;
    height: fit-content;
} */

form {
    width: 400px;
}

img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

body {
    background-color: white;
    min-height: 100vh;
    max-height: fit-content;
    padding: 50px;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-image: url("gradient-bg.jpg");
    backdrop-filter: hue-rotate(-75deg) brightness(80%) saturate(110%);
}

.login {
    flex-direction: column;
    vertical-align: top;
    row-gap: 12.5px;
    margin: auto;
    max-width: calc(var(--login-width) + var(--login-padding) * 2);
    height: fit-content;
    padding: calc(var(--login-padding) * 1.5) var(--login-padding);
    background-color: white;
    border-radius: 15px;
}

.login p {
    margin: 12.5px 0px;
}

.login label.required::after {
    content: ' *';
    color: #dd5e59;
}

input {
    border: 1px solid #CCCCCC;
    border-radius: 20px;
    height: 35px;
    width: 100%;
    margin: 5px 0px;
    padding: 0 15px;
    letter-spacing: 0.025em;
}

label {
    position: relative;
    display: flex;
    text-align: center;
    justify-content: left;
    font-family: 'MessinaSans-Regular', Helvetica, sans-serif;
    font-weight: 400;
    letter-spacing: 0.025em;
}

.main ul, .main span, .login-text {
    text-align: center;
    list-style-type: none;
    color: rgba(109, 109, 109, 0.75);
    line-height: 1.5em;
    font-size: 13px;
    letter-spacing: 0.05em;
}

.signup ul.errorlist {
    color: hsl(2, 60%, 55%);
}

.signup ul, .helptext {
    color: rgba(109, 109, 109, 0.75);
    font-size: 12px;
    letter-spacing: 0.05em;
    margin: 10px 0 10px 0; 
}

.signup ul {
    line-height: 1.5em;
    margin-left: 1rem;
}

.helptext {
    margin-bottom: 20px;
}

form {
    margin: 0;
    padding: 0;
    width: var(--login-width);
}

hr {
    width: var(--login-width);
    height: 1px;
    /* margin: 12.5px 0px; */
    background-color: hsla(0, 0%, 88%, 1);
    border: none;
}

.separator {
    display: flex;
    align-items: center;
    text-align: center;
    color: hsla(0, 0%, 78%, 1);
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 500;
    margin: 5px 0;
}

.separator::before,
.separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid hsla(0, 0%, 88%, 1);
}

.separator:not(:empty)::before {
    margin-right: .5em;
}

.separator:not(:empty)::after {
    margin-left: .5em;
}

.two-factor-btns {
    display: flex;
    width: var(--login-width);
    column-gap: 10px;
}

.login-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

#forgot-pass {
    /* text-decoration: none; */
    text-underline-offset: .25em;
    color: hsla(0, 0%, 65%, 1);
    font-family: 'MessinaSans-Regular', Helvetica, sans-serif;
    font-size: 12.5px;
}

#forgot-pass:hover {
    color: hsl(178, 65%, 50%);
}

.login-btn, .btn-block, .btn-danger {
    letter-spacing: 0.025em;
    /* flex: 1 1 0px; */
    /* margin-top: 10px; */
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    width: var(--login-width);
    border-radius: 25px;
    min-height: 45px;
    font-family: 'MessinaSans-Bold', Helvetica, sans-serif;
    font-size: 16px;
    border: 0;
    cursor: pointer;
    color: #547078;
    transition: color .5s ease, background .3s;
    background-color: hsl(175, 80%, 80%);
    filter: drop-shadow(0px 6px 24px rgba(0, 0, 0, 0.06));
}

.btn-danger {
    background-color: hsl(2, 65%, 80%);
    color: hsl(2, 80%, 25%);
}

.login-btn:disabled {
    background-color: #ddd;
    color: #888;
    cursor: default;
}

.login-btn:hover:not([disabled]), .btn:hover:not([disabled]) {
    color: #1E4651;
    background-color: #74E7E3;
}

.btn-danger:hover:not([disabled]) {
    color: hsl(2, 90%, 20%);
    background-color: hsl(2, 75%, 75%);
}