@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap');

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

body {
    background-color: #EEE;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background-color: #FFF;
    width: 500px;
    height: 650px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.25);
    border-radius: 7.5px;
    margin-top: 25px;
}

main img {
    width: 250px;
    height: auto;
    margin-bottom: 20px;
    margin-top: 120px;
}

.login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

/* Floating input styling */
.floating-input {
    position: relative;
    width: 300px;
    height: 30px;
    border: 1px solid #BABABA;
    border-radius: 5px;
    background: #FFF;
    font-family: 'Lexend', sans-serif;
    font-weight: 300;
    /* overflow: hidden; */
}

.floating-input input {
    width: 100%;
    height: 100%;
    
    padding: 0px 10px 0;
    box-sizing: border-box;

    font-size: 14px;
    font-family: inherit;
    font-weight: inherit;
    
    border: none;
    outline: none;
    background: transparent;

    display: flex;
    align-items: center;

    background: transparent;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px transparent inset;
    -webkit-text-fill-color: inherit;
    background-color: transparent !important;
    transition: background-color 5000s ease-in-out 0s;
}

.floating-input label {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #BABABA;
    pointer-events: none;
    background: #FFF;
    padding: 0 4px;
    margin: 0 -4px;
    transition: 0.18s ease;
    border-radius: 5px;
}

.floating-input:focus-within,
.floating-input:has(input:valid) {
    background: #FFF;
}

.floating-input input:focus + label,
.floating-input input:valid + label {
    top: -2px;
    font-size: 11px;
}

/* Login action styling */
.login-action {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.login-action a {
    font-family: 'Lexend', sans-serif;
    font-weight: 300;
    font-size: 12px;
    color: #BABABA;
    text-decoration: underline;
}

.login-action button {
    background-color: #000;
    color: #FFF;
    height: 30px;
    width: 100px;
    border: none;
    border-radius: 5px;
    font-family: 'Lexend', sans-serif;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-action button:hover {
    background-color: #222;
}

/* 
    Detail message styling
*/

.detail-message {
    display: none;

    width: 300px;
    min-height: 30px;

    padding: 6px 8px;
    margin-top: 25px;

    font-family: 'Lexend', sans-serif;
    font-size: 13px;
    text-align: center;
    
    align-items: center;
    justify-content: center;
    
    background-color: #BABCBD;
    border-radius: 5px;

    cursor: pointer;
}

.error-message {
    background-color: #ffb6b1;
}

.success-message {
    background-color: #bdffd1;
}

/*
    Footer styling
*/
.footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.footer p, a {
    font-family: 'Lexend', sans-serif;
    font-weight: 300;
    font-size: 12px;
    color: #BABCBD;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer img {
    width: 85px;
    height: auto;
    margin: 0 5px;
}