mirror of
https://github.com/Casvt/MIND.git
synced 2026-02-19 11:54:46 -05:00
81 lines
1.2 KiB
CSS
81 lines
1.2 KiB
CSS
main {
|
|
height: calc(100vh - var(--header-height));
|
|
|
|
overflow-y: hidden;
|
|
}
|
|
|
|
main:has(#form-switch:checked) .form-container {
|
|
transform: translateY(-100%);
|
|
}
|
|
|
|
.form-container {
|
|
height: inherit;
|
|
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
|
|
padding: 1rem;
|
|
|
|
transition: transform .25s ease-in-out;
|
|
}
|
|
|
|
form {
|
|
width: 30rem;
|
|
margin-inline: auto;
|
|
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
|
|
border-radius: 4px;
|
|
padding: 1rem;
|
|
background-color: var(--color-gray);
|
|
color: var(--color-light);
|
|
}
|
|
|
|
form h2 {
|
|
font-size: clamp(1.2rem, 7vw, 2rem);
|
|
}
|
|
|
|
#username-error-container,
|
|
#password-error-container {
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: .5rem;
|
|
}
|
|
|
|
form input {
|
|
width: min(100%, 20rem);
|
|
}
|
|
|
|
#username-error-container p,
|
|
#password-error-container p {
|
|
width: min(100%, 19rem);
|
|
}
|
|
|
|
.switch-button {
|
|
border: 0;
|
|
background-color: transparent;
|
|
color: var(--color-light);
|
|
|
|
text-decoration: underline;
|
|
text-align: center;
|
|
}
|
|
|
|
.switch-button:hover {
|
|
cursor: pointer;
|
|
}
|
|
|
|
button[type="submit"] {
|
|
padding: .5rem 1rem;
|
|
|
|
font-size: 1.1rem;
|
|
}
|