body > main {
flex: 1;
}
form {
width: 35%;
margin-left: auto;
margin-right: auto;
margin-block: var(--margin-top);
padding: 2rem;
border: solid #003d9f;
border-radius: 10px;
background-color: #0e1840;
}
.form-label {
width: 100%;
}
h1 {
text-align: center;
color: var(--accent);
margin-top: var(--margin-top);
}
form,
.invalid-feedback,
.form-text,
.form-control,
.form-label {
text-align: center;
}
.form-container {
display: flex;
flex-direction: column;
align-items: center;
}
form button {
align-self: center;
}
form > div {
display: flex;
flex-direction: column;
gap: 0.4rem;
}
form label {
font-size: 0.85rem;
font-weight: 600;
color: var(--text-muted);
}
form input,
form textarea,
form select {
background: #0f172a;
border: 1px solid #1f2937;
border-radius: 0.75rem;
padding: 0.7rem 0.9rem;
color: var(--text-main);
font-size: 0.95rem;
transition: all 0.2s ease;
outline: none;
}
form input::placeholder {
color: #475569;
}
form input:focus,
form textarea:focus,
form select:focus {
border-color: var(--accent);
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
background: #111827;
}
form .error input {
border-color: #ef4444;
}
form .error-message {
font-size: 0.75rem;
color: #fca5a5;
}
form button, .text-center a {
margin-top: 1rem;
background: linear-gradient(135deg, var(--accent), #6366f1);
color: #fff;
border: none;
padding: 0.8rem 1rem;
border-radius: 1rem;
font-weight: 700;
font-size: 0.95rem;
cursor: pointer;
transition: all 0.25s ease;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}
form button:hover, .text-center:hover {
transform: translateY(-1px);
box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
filter: brightness(1.05);
}
form button:active, .text-center:active {
transform: translateY(0);
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6);
}
.text-center:hover {
box-shadow: none;
}
.text-center {
width: 20vw;
display: flex;
justify-content: center;
margin: var(--margin-top);
}
.text-center a {
color: #fff;
text-decoration: none;
}
#form {
display: flex;
flex-direction: column;
align-items: center;
}
@media (max-width: 480px) {
form {
gap: 1rem;
width: 80%;
}
form button {
font-size: 0.9rem;
padding: 0.7rem;
}
}