fullstack-form-app-sinclqir
Version:
Application de gestion des utilisateurs avec authentification JWT - Frontend React + Backend Python FastAPI
117 lines (100 loc) • 2.01 kB
CSS
.registration-form {
width: 100%;
}
.registration-title {
margin: 0 0 1.5rem 0;
font-size: 1.5rem;
font-weight: 700;
color: #1f2937;
text-align: center;
}
.registration-description {
margin: 0 0 1.5rem 0;
color: #6b7280;
font-size: 0.875rem;
text-align: center;
}
.registration-content {
display: flex;
flex-direction: column;
gap: 1rem;
}
.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1rem;
}
.form-group {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.form-label {
font-size: 0.875rem;
font-weight: 500;
color: #374151;
}
.form-input {
padding: 0.75rem;
border: 2px solid #e5e7eb;
border-radius: 0.5rem;
font-size: 1rem;
transition: all 0.2s ease;
background: white;
}
.form-input:focus {
outline: none;
border-color: #16a34a;
box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}
.form-input::placeholder {
color: #9ca3af;
}
.submit-btn {
width: 100%;
padding: 0.75rem;
background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
color: white;
border: none;
border-radius: 0.5rem;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
box-shadow: 0 4px 6px rgba(22, 163, 74, 0.25);
margin-top: 0.5rem;
}
.submit-btn:hover:not(:disabled) {
transform: translateY(-1px);
box-shadow: 0 6px 12px rgba(22, 163, 74, 0.3);
}
.submit-btn:disabled {
opacity: 0.7;
cursor: not-allowed;
transform: none;
}
.alert {
padding: 1rem;
border-radius: 0.5rem;
margin-bottom: 1rem;
font-size: 0.875rem;
}
.alert.error {
background: #fef2f2;
color: #dc2626;
border-left: 4px solid #dc2626;
}
.alert.success {
background: #f0fdf4;
color: #16a34a;
border-left: 4px solid #16a34a;
}
/* Responsive */
@media (max-width: 768px) {
.form-row {
grid-template-columns: 1fr;
}
.registration-title {
font-size: 1.25rem;
}
}