body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #333;
    padding: 20px;
}

.container {
    text-align: center;
    background-color: #ffffff;
    padding: 40px 50px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #d1d7de;
    width: 100%;
    max-width: 420px;
}

.logo {
    width: 60px;
    margin-bottom: 20px;
}

.title {
    font-size: 24px;
    font-weight: 500;
    color: #333;
    margin: 0 0 10px 0;
}

.subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
    color: #444;
}

.input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #d1d7de;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
}

.button:hover:not(:disabled) {
    background-color: #0056b3;
}

.button:disabled {
    background-color: #a0a0a0;
    cursor: not-allowed;
}

.form-error {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 15px;
    font-size: 14px;
}

.extra-links {
    margin-top: 20px;
}

.extra-links a {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}
.extra-links a:hover {
    text-decoration: underline;
}


/* --- Modal Styles (SRE HARDENED) --- */
.modal-overlay {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-color: rgba(15, 23, 42, 0.85); /* Mais escuro para foco */
    z-index: 2147483647; /* Máximo Z-Index possível */
    display: flex; 
    justify-content: center; 
    align-items: center;
    backdrop-filter: blur(4px);
}
.modal-container {
    background-color: #fff; 
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); 
    z-index: 2147483647;
    width: 90%; 
    max-width: 450px; 
    display: flex; 
    flex-direction: column;
    max-height: 90vh;
    animation: modalSlideIn 0.3s ease-out;
}
@keyframes modalSlideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 25px; border-bottom: 1px solid #e2e8f0;
}
.modal-header h2 { margin: 0; font-size: 18px; font-weight: 600; }
.modal-close-btn { background: none; border: none; font-size: 24px; cursor: pointer; color: #64748b; line-height: 1; }
.modal-body { padding: 25px; }
.modal-body p { margin-top: 0; color: #64748b; }
.modal-footer {
    display: flex; justify-content: flex-end; gap: 10px; padding: 15px 25px;
    border-top: 1px solid #e2e8f0; background-color: #f8fafc;
}

.form-message {
    padding: 10px; margin-top: 15px; border-radius: 6px; font-size: 14px;
}
.form-message.success { color: #0f5132; background-color: #d1e7dd; border: 1px solid #badbcc; }
.form-message.error { color: #842029; background-color: #f8d7da; border: 1px solid #f5c2c7; }

.btn { padding: 8px 16px; border-radius: 6px; cursor: pointer; font-weight: 500; }
.btn-primary { background-color: #007bff; color: white; border: 1px solid #007bff; }
.btn-secondary { background-color: #fff; color: #333; border: 1px solid #ccc; }
.btn-danger { background-color: #dc3545; color: white; border: 1px solid #dc3545; }
.btn-danger:hover { background-color: #bb2d3b; }
.btn:disabled { opacity: 0.7; cursor: not-allowed; }

/* --- Onboarding Form Specific Styles --- */
.form-grid { 
    display: grid; 
    grid-template-columns: repeat(12, 1fr); 
    gap: 15px 20px; 
    text-align: left;
}
.col-span-12 { grid-column: span 12; }
.col-span-8 { grid-column: span 8; }
.col-span-6 { grid-column: span 6; }
.col-span-4 { grid-column: span 4; }

.form-section-title {
    grid-column: span 12;
    font-size: 1rem;
    font-weight: 600;
    color: #3b82f6;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
    margin: 20px 0 10px 0;
    text-align: left;
}
.form-section-title:first-of-type {
    margin-top: 0;
}
