frontend_nyla/src/pages/Login.module.css
2026-01-25 23:57:47 +01:00

299 lines
4.8 KiB
CSS

.container {
display: flex;
min-height: 100vh;
font-family: "DM Sans", sans-serif;
color: #181818;
}
.mainContent {
flex: 1;
display: flex;
flex-direction: column;
padding: 3rem;
background-color: #181818;
}
.loginSection {
display: flex;
flex-direction: column;
align-items: center;
flex: 1;
}
.logoText {
font-size: 35px;
display: flex;
align-items: center;
letter-spacing: -0.5px;
font-weight: 200;
}
.logoPower {
color: #E5E7EB;
}
.logoOn {
color: #F25843;
font-weight: 700;
}
.logo img {
height: 40px;
}
.loginBox {
background-color: #181818;
width: 25%;
height: auto;
margin-top: 5%;
padding: 2rem;
border-radius: 25px;
border: 1px solid rgba(199, 197, 178, 0.15); /* washed-out color */
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02),
0 0 10px rgba(0, 0, 0, 0.1);
}
.title {
font-family: "DM Sans", sans-serif;
color: #E5E7EB;
}
.loginForm {
display: flex;
flex-direction: column;
gap: 1rem;
}
.floatingLabelInput {
position: relative;
}
.label {
position: absolute;
left: 16px;
top: 50%;
transform: translateY(-50%);
color: #C7C5B2;
font-size: 1rem;
pointer-events: none;
transition: all 0.3s ease;
background-color: transparent;
font-family: var(--font-family);
}
.focusedLabel {
position: absolute;
left: 12px;
top: -8px;
transform: translateY(0);
color: #F25843;
font-size: 0.85rem;
pointer-events: none;
transition: all 0.3s ease;
background-color: #181818;
padding: 0 4px;
font-family: var(--font-family);
font-weight: 500;
}
.input {
width: 100%;
height: 50px;
padding: 12px 16px;
border: 1px solid var(--color-gray-disabled);
border-radius: 25px;
font-size: 1rem;
transition: all 0.2s ease;
background-color: #181818;
color: #C7C5B2;
font-family: var(--font-family);
}
.input:focus {
outline: none;
border-color: #F25843;
box-shadow: 0 0 0 2px rgba(242, 88, 67, 0.1);
}
.input::placeholder {
color: transparent;
}
/* Fix browser autocomplete styling */
.input:-webkit-autofill,
.input:-webkit-autofill:hover,
.input:-webkit-autofill:focus,
.input:-webkit-autofill:active {
-webkit-box-shadow: 0 0 0 30px #181818 inset !important;
-webkit-text-fill-color: #E5E7EB !important;
background-color: #181818 !important;
transition: background-color 5000s ease-in-out 0s;
}
/* Ensure label background matches when autofilled */
.input:-webkit-autofill + .label,
.input:-webkit-autofill + .focusedLabel {
background-color: #181818 !important;
}
.disclaimer {
font-size: 0.8rem;
color: #E5E7EB;
text-align: center;
}
.button {
width: 100%;
height: 50px;
padding: 12px 20px;
border-radius: 25px;
font-size: 1rem;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
border: none;
text-align: center;
}
.buttonContent {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
}
.microsoftIcon {
width: 18px;
height: 18px;
}
.loginButton {
background-color: #F25843;
color: #E5E7EB;
}
.loginButton:hover {
background-color: var(--color-secondary-hover);
}
.microsoftButton {
background-color: #C7C5B2;
color: #181818;
}
.microsoftButton:hover {
background-color: #D9D7C6;
}
.googleButton {
background-color: #C7C5B2;
color: #181818;
}
.googleButton:hover {
background-color: #D9D7C6;
}
.divider {
display: flex;
align-items: center;
text-align: center;
}
.divider::before,
.divider::after {
content: '';
flex: 1;
border-bottom: 1px solid var(--color-gray-disabled);
}
.divider span {
padding: 0 1rem;
color: #E5E7EB;
font-size: 0.8rem;
}
.registerLink {
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
}
.registerLink span {
color: #E5E7EB;
font-size: 0.8rem;
}
.textButton {
background: none;
border: none;
color: var(--color-secondary);
font-weight: 500;
cursor: pointer;
padding: 0;
font-size: 0.9rem;
font-family: var(--font-family);
}
.textButton:hover {
text-decoration: underline;
}
button:disabled {
opacity: 0.7;
cursor: not-allowed;
}
.error {
color: var(--color-red);
background-color: var(--color-red-disabled);
border: 1px solid var(--color-red);
border-radius: 8px;
padding: 12px;
font-size: 0.9rem;
text-align: center;
font-family: var(--font-family);
}
.invitationNotice {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 16px;
background-color: rgba(59, 130, 246, 0.1);
border: 1px solid rgba(59, 130, 246, 0.3);
border-radius: 8px;
margin-bottom: 16px;
font-size: 0.9rem;
color: #93c5fd;
}
.invitationIcon {
flex-shrink: 0;
font-size: 1.2rem;
color: #3b82f6;
}
.passwordResetLink {
display: flex;
justify-content: center;
margin-top: -0.5rem;
}
.passwordResetLink .textButton {
color: #9CA3AF;
font-size: 0.85rem;
}
.passwordResetLink .textButton:hover {
color: #F25843;
}