.form-section {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
}

.form-section h1 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #f8fbff;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    text-align: center;
}

.form-subtitle {
    font-size: 1.1rem;
    color: #a5b4fc;
    margin-bottom: 36px;
    text-align: center;
}

.formulario {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 36px 32px;
    backdrop-filter: blur(12px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
    text-align: left;
}

.formulario label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #a5b4fc;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.formulario input {
    width: 100%;
    padding: 13px 16px;
    margin-bottom: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #f8fbff;
    font-family: 'Sora', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.formulario input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.formulario input:focus {
    border-color: #5b38ff;
    box-shadow: 0 0 0 3px rgba(91, 56, 255, 0.18);
}

.formulario button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #5b38ff 0%, #2dd4bf 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Sora', sans-serif;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: opacity 0.3s ease, transform 0.2s ease;
    margin-top: 4px;
}

.formulario button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    .formulario {
        padding: 28px 20px;
    }
}
body.tema-escuro .style-card {
    background: #1f1f1f;
}

/* Mensagens de erro/aviso do login e cadastro */
.flash-message {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fecaca;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 18px;
    text-align: left;
}

.form-footer {
    text-align: center;
    margin-top: 18px;
    color: #a5b4fc;
    font-size: 0.95rem;
}

.form-footer a {
    color: #2dd4bf;
    font-weight: 600;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

body.tema-claro .flash-message {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b !important;
}

body.tema-claro .form-footer {
    color: #555 !important;
}
