274 lines
5 KiB
CSS
274 lines
5 KiB
CSS
.container {
|
|
display: flex;
|
|
min-height: 100dvh;
|
|
font-family: "DM Sans", sans-serif;
|
|
color: var(--color-bg);
|
|
}
|
|
|
|
@supports not (min-height: 100dvh) {
|
|
.container {
|
|
min-height: 100vh;
|
|
}
|
|
}
|
|
|
|
.mainContent {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 2.5rem 2rem;
|
|
background-color: var(--color-bg);
|
|
}
|
|
|
|
.loginSection {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
width: 100%;
|
|
flex: 1;
|
|
}
|
|
|
|
.logo {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
width: 100%;
|
|
}
|
|
|
|
.logoImage {
|
|
height: 44px;
|
|
width: auto;
|
|
object-fit: contain;
|
|
}
|
|
|
|
.loginBox {
|
|
background-color: var(--color-bg);
|
|
width: min(100%, 460px);
|
|
height: auto;
|
|
margin-top: 2rem;
|
|
padding: 2rem;
|
|
|
|
border-radius: 8px;
|
|
border: 1px solid var(--color-border, #E2E8F0);
|
|
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: var(--color-text);
|
|
font-size: 1.5rem;
|
|
font-weight: 500;
|
|
margin-bottom: 1.5rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.loginForm {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.floatingLabelInput {
|
|
position: relative;
|
|
}
|
|
|
|
.label {
|
|
position: absolute;
|
|
left: 16px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
color: var(--color-primary);
|
|
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: var(--color-secondary);
|
|
font-size: 0.85rem;
|
|
pointer-events: none;
|
|
transition: all 0.3s ease;
|
|
background-color: var(--color-bg);
|
|
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: 8px;
|
|
|
|
font-size: 1rem;
|
|
transition: all 0.2s ease;
|
|
background-color: var(--color-bg);
|
|
color: var(--color-text);
|
|
font-family: var(--font-family);
|
|
}
|
|
|
|
.input:focus {
|
|
outline: none;
|
|
border-color: var(--color-secondary);
|
|
box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-secondary) 10%, transparent);
|
|
}
|
|
|
|
.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 var(--color-bg) inset !important;
|
|
-webkit-text-fill-color: var(--color-text) !important;
|
|
background-color: var(--color-bg) !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: var(--color-bg) !important;
|
|
}
|
|
|
|
.button {
|
|
width: 100%;
|
|
height: 50px;
|
|
padding: 12px 20px;
|
|
border-radius: 8px;
|
|
|
|
font-size: 1rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
border: none;
|
|
text-align: center;
|
|
}
|
|
|
|
.loginButton {
|
|
background-color: var(--color-secondary);
|
|
color: var(--color-text);
|
|
}
|
|
|
|
.loginButton:hover {
|
|
background-color: var(--color-secondary-hover);
|
|
}
|
|
|
|
.registerLink {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.registerLink span {
|
|
color: var(--color-text);
|
|
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-secondary);
|
|
background-color: var(--color-secondary-disabled);
|
|
border: 1px solid var(--color-secondary);
|
|
border-radius: 8px;
|
|
padding: 12px;
|
|
font-size: 0.9rem;
|
|
text-align: center;
|
|
font-family: var(--font-family);
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.success {
|
|
color: var(--color-success);
|
|
background-color: color-mix(in srgb, var(--color-success) 10%, transparent);
|
|
border: 1px solid var(--color-success);
|
|
border-radius: 8px;
|
|
padding: 12px;
|
|
font-size: 0.9rem;
|
|
text-align: center;
|
|
font-family: var(--font-family);
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.infoMessage {
|
|
background-color: color-mix(in srgb, var(--color-primary) 10%, transparent);
|
|
border: 1px solid color-mix(in srgb, var(--color-primary) 100%, transparent);
|
|
border-radius: 12px;
|
|
padding: 12px;
|
|
font-size: 0.85rem;
|
|
color: var(--color-gray);
|
|
text-align: center;
|
|
font-family: var(--font-family);
|
|
}
|
|
|
|
.infoMessage p {
|
|
margin: 0;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.mainContent {
|
|
padding: 1rem;
|
|
}
|
|
|
|
.logoImage {
|
|
height: 40px;
|
|
}
|
|
|
|
.loginBox {
|
|
width: 100%;
|
|
margin-top: 1.25rem;
|
|
padding: 1.25rem;
|
|
border-radius: 20px;
|
|
}
|
|
|
|
.registerLink {
|
|
flex-wrap: wrap;
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 420px) {
|
|
.mainContent {
|
|
padding: 0.75rem;
|
|
}
|
|
|
|
.loginBox {
|
|
padding: 1rem;
|
|
border-radius: 16px;
|
|
}
|
|
|
|
.input,
|
|
.button {
|
|
height: 48px;
|
|
}
|
|
}
|