Aryansoni27's picture
Create style.css
e4eaa42 verified
/* General Page Styling */
body {
font-family: 'Poppins', sans-serif;
background-color: #f4f7fc;
color: #333;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
/* Form Container */
.container {
width: 100%;
max-width: 400px;
background: white;
padding: 30px;
border-radius: 12px;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
text-align: center;
animation: fadeIn 0.5s ease-in-out;
}
/* Form Title */
h2 {
font-size: 24px;
color: #2c3e50;
margin-bottom: 20px;
}
/* Labels */
label {
display: block;
font-size: 14px;
font-weight: 600;
text-align: left;
margin-bottom: 5px;
color: #555;
}
/* Input Fields */
input, select {
width: 100%;
padding: 10px;
margin-bottom: 15px;
border: 1px solid #ccc;
border-radius: 6px;
font-size: 14px;
transition: border-color 0.3s ease;
}
input:focus, select:focus {
border-color: #3498db;
outline: none;
}
/* Checkboxes */
.checkbox-group {
display: flex;
align-items: center;
gap: 8px;
font-size: 14px;
}
input[type="checkbox"] {
width: 16px;
height: 16px;
accent-color: #3498db;
}
/* Submit Button */
button {
width: 100%;
padding: 12px;
background: #3498db;
color: white;
font-size: 16px;
font-weight: 600;
border: none;
border-radius: 6px;
cursor: pointer;
transition: background 0.3s ease;
}
button:hover {
background: #2980b9;
}
/* Fade-in Animation */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(-10px); }
to { opacity: 1; transform: translateY(0); }
}