join/src/app/components/login/login.component.scss
2024-05-14 20:37:30 +02:00

147 lines
2.2 KiB
SCSS

section {
width: 100vw;
height: 100vh;
}
// LOGIN
.content {
display: flex;
flex-direction: column;
align-items: center;
position: fixed;
top: 50%;
right: 50%;
transform: translate(50%, -50%);
width: 422px;
height: fit-content;
background: var(--white);
box-shadow: 0px 0px 12px 3px rgba(0, 0, 0, 0.05);
border-radius: 30px;
padding: 48px 96px;
p {
font-size: 61px;
font-weight: 700;
}
img {
padding: 12px 0 24px 0;
}
}
.input-fields {
display: flex;
flex-direction: column;
align-items: center;
position: relative;
width: 100%;
.custom-input::-webkit-contacts-auto-fill-button {
visibility: hidden;
}
.custom-input {
font-size: 20px;
font-weight: 400;
width: 100%;
border-radius: 10px;
border: 1px solid var(--light-gray);
padding: 12px 16px;
}
.custom-img {
&:nth-child(2) {
position: absolute;
right: 0;
top: 5px;
}
&:nth-child(5) {
position: absolute;
right: 0;
top: 88px;
}
}
.passwordEye {
position: absolute;
right: -5px;
top: 88px;
}
.custom-input:focus + .custom-img {
display: none;
}
}
.error-msg {
display: flex;
align-items: center;
justify-content: center;
height: 24px;
padding: 6px;
width: 120%;
p {
color: var(--red);
font-size: 12px !important;
font-weight: 400 !important;
}
}
.form-buttons {
display: flex;
justify-content: end;
padding: 12px 0;
}
/*------------- RESPONSIVE -------------*/
@media screen and (max-width: 650px) {
.content {
width: 322px;
height: fit-content;
padding: 24px 48px;
p {
font-size: 47px;
}
}
}
@media (max-height: 800px) {
.content {
top: 40%;
}
}
@media screen and (max-width: 450px) {
.content {
width: 252px;
height: fit-content;
padding: 12px 24px;
p {
font-size: 36px;
}
}
.input-fields {
.custom-input {
font-size: 16px;
padding: 12px;
}
.custom-img {
&:nth-child(2) {
top: 2px;
}
&:nth-child(5) {
top: 73px;
}
}
.passwordEye {
top: 76px;
}
}
.input-fields {
width: 80%;
}
.error-msg {
height: 18px;
p {
font-size: 10px !important;
}
}
}