Files
projet_gestion_commande/frontend-prep/src/pages/LoginClient/Login.css
T

262 lines
4.2 KiB
CSS

.login-container {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #1a1a1a;
display: flex;
align-items: center;
justify-content: center;
padding: 1rem;
overflow-y: auto;
}
.login-content {
width: 100%;
max-width: 28rem;
position: relative;
}
.login-header {
text-align: center;
margin-bottom: 2rem;
}
.login-logo {
display: inline-flex;
align-items: center;
justify-content: center;
width: 4rem;
height: 4rem;
background: linear-gradient(to bottom right, #7c3aed, #6d28d9);
border-radius: 1rem;
margin-bottom: 1rem;
box-shadow: 0 10px 15px -3px rgba(109, 40, 217, 0.5);
}
.login-title {
font-size: 1.875rem;
font-weight: bold;
color: white;
margin-bottom: 0.5rem;
}
.login-subtitle {
color: #9ca3af;
}
.login-card {
background-color: #000000;
backdrop-filter: blur(16px);
border-radius: 1rem;
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
border: 1px solid rgba(75, 85, 99, 0.5);
padding: 2rem;
}
.login-form {
display: flex;
flex-direction: column;
gap: 1.5rem;
}
.form-group {
display: flex;
flex-direction: column;
}
.form-label {
display: block;
font-size: 0.875rem;
font-weight: 500;
color: #d1d5db;
margin-bottom: 0.5rem;
}
.input-wrapper {
position: relative;
}
.input-icon {
position: absolute;
top: 50%;
left: 1rem;
transform: translateY(-50%);
pointer-events: none;
color: #6b7280;
}
.form-input {
width: 100%;
padding: 0.75rem 1rem 0.75rem 3rem;
background-color: #000000;
border: 1px solid #4b5563;
border-radius: 0.5rem;
color: white;
font-size: 1rem;
transition: all 0.3s;
}
.form-input::placeholder {
color: #6b7280;
}
.form-input:focus {
outline: none;
border-color: #7c3aed;
box-shadow: 0 0 10px rgba(124, 58, 237, 0.5),
0 0 20px rgba(124, 58, 237, 0.3),
0 0 30px rgba(124, 58, 237, 0.1);
}
.form-input.error {
border-color: #ef4444;
}
.password-toggle {
position: absolute;
top: 50%;
right: 0.75rem;
transform: translateY(-50%);
background: transparent;
border: none;
color: #6b7280;
cursor: pointer;
padding: 0.25rem;
display: flex;
align-items: center;
transition: color 0.2s;
}
.password-toggle:hover {
color: #d1d5db;
}
.error-message {
margin-top: 0.5rem;
font-size: 0.875rem;
color: #f87171;
}
.form-options {
display: flex;
align-items: center;
justify-content: space-between;
}
.remember-me {
display: flex;
align-items: center;
cursor: pointer;
}
.remember-me input {
width: 1rem;
height: 1rem;
background-color: #111827;
border: 1px solid #4b5563;
border-radius: 0.25rem;
cursor: pointer;
accent-color: #7c3aed;
}
.remember-me span {
margin-left: 0.5rem;
font-size: 0.875rem;
color: #9ca3af;
}
.forgot-password {
background: transparent;
border: none;
font-size: 0.875rem;
color: #a78bfa;
cursor: pointer;
padding: 0;
transition: color 0.2s;
}
.forgot-password:hover {
color: #c4b5fd;
}
.submit-button {
width: 100%;
background: linear-gradient(to right, #7c3aed, #6d28d9);
color: white;
font-weight: 600;
padding: 0.75rem 1rem;
border-radius: 0.5rem;
border: none;
cursor: pointer;
transition: all 0.2s;
box-shadow: 0 10px 15px -3px rgba(109, 40, 217, 0.5);
}
.submit-button:hover:not(:disabled) {
background: linear-gradient(to right, #6d28d9, #5b21b6);
}
.submit-button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.submit-button:active:not(:disabled) {
transform: scale(0.98);
}
.loading-spinner {
display: flex;
align-items: center;
justify-content: center;
}
.spinner {
animation: spin 1s linear infinite;
margin-right: 0.75rem;
height: 1.25rem;
width: 1.25rem;
color: white;
}
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
.signup-section {
margin-top: 1.5rem;
text-align: center;
}
.signup-text {
color: #9ca3af;
font-size: 0.875rem;
}
.signup-link {
background: transparent;
border: none;
color: #a78bfa;
font-weight: 500;
cursor: pointer;
padding: 0;
transition: color 0.2s;
}
.signup-link:hover {
color: #c4b5fd;
}
.login-footer {
margin-top: 2rem;
text-align: center;
color: #6b7280;
font-size: 0.875rem;
}