ldapmanager/test/scss/login.scss
2024-10-25 16:43:15 +05:30

115 lines
3.8 KiB
SCSS

@use "common"; // Reset styles
@use "colors" as *; // Color scheme
body {
// Page background
font-family: 'Arial', sans-serif;
background: $login-page-background-color;
display: flex;
align-items: center;
height: 100vh;
padding-right: 50px;
// The left side, with the logo
.left-container {
flex: 1; // Take available space on the left
padding-left: 50px; // Space from the left edge
text-align: left; // Align text to the left
display: flex;
flex-direction: column; // Stack elements vertically
justify-content: center; // Center elements vertically
// App or organization logo
.logo {
height: 190px; // Set logo height
max-width: 100%; // Ensure the logo doesn't exceed the container's width
width: auto; // Maintain aspect ratio
margin-bottom: 20px; // Space below the logo, above the title
align-self: flex-start; // Align logo to the start (left) of the container
//box-shadow: -3px 3px 15px 3px $login-page-logo-shadow-color;
}
// Application name
h1 {
font-size: 36px;
color: $login-page-appname-color;
margin-bottom: 10px; // Space below the heading
}
// App description
p {
font-size: 18px;
color: $login-page-description-color;
}
}
// The login form container
.login-container {
background-color: $login-form-background;
padding: 40px; // Spaces
border-radius: 12px; // Round corners
box-shadow: -3px 3px 15px 3px $login-form-shadow-color;
width: 350px;
text-align: center;
// The heading ("Login")
h2 {
display: block;
margin-bottom: 20px; // Add space below the heading
color: $login-form-title-color;
font-size: 26px;
}
form {
display: flex;
flex-direction: column;
align-items: center; // Center the form elements
// The input fields
input[type="text"],
input[type="password"] {
width: 100%; // Make the inputs full width of the form
padding: 12px; // Spaces
margin-bottom: 15px;
border: 1px solid $login-form-input-border-color;
border-radius: 6px; // Round corners
font-size: 16px;
background-color: $login-form-input-background;
transition: border-color 0.3s, background-color 0.3s;
&:hover {
border-color: $login-form-input-hover-border-color;
}
&:focus {
border-color: $login-form-input-focus-border-color;
background-color: $login-form-input-focused-background;
outline: none;
}
}
button {
width: 100%; // Full width of the form
padding: 12px; // Spaces
background-color: $login-button-color;
color: $login-button-text-color;
border: none;
border-radius: 6px; // Round corners
font-size: 18px;
font-weight: bold;
cursor: pointer;
transition: background-color 0.3s, transform 0.3s;
box-shadow: 0 4px 10px $login-button-shadow;
&:hover {
background-color: $login-button-hover-color;
}
&:active {
transform: translateY(0);
box-shadow: 0 2px 6px $login-button-active-shadow;
}
}
}
}
}