DeepSeek-V3/static/css/styles.css
Hitesh Yadav 7d95c3e5ec Improve accessibility for CAPTCHA challenges in DeepSeek v3
Add accessible CAPTCHA solution using hCaptcha to improve accessibility for visually impaired users.

* **Add dependencies**: Add `hcaptcha` and `flask` to `requirements.txt`.
* **Implement hCaptcha in Flask app**: Create `app.py` to set up Flask application, configure hCaptcha, and create routes for sign-up and login with hCaptcha integration.
* **Create sign-up form**: Add `templates/signup.html` with HTML form for user sign-up, integrating hCaptcha widget and adding ARIA labels and roles for screen reader compatibility.
* **Create login form**: Add `templates/login.html` with HTML form for user login, integrating hCaptcha widget and adding ARIA labels and roles for screen reader compatibility.
* **Add CSS styles**: Add `static/css/styles.css` to style form elements and hCaptcha widget, ensuring high contrast and readability for visually impaired users.
* **Write unit tests**: Add `tests/test_accessibility.py` to test accessibility features using NVDA and verify hCaptcha integration and screen reader compatibility.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/twlhitesh/DeepSeek-V3?shareId=XXXX-XXXX-XXXX-XXXX).
2025-01-06 15:53:37 +05:30

86 lines
1.3 KiB
CSS

/* General styles for the form elements */
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
color: #333;
margin: 0;
padding: 0;
}
.container {
max-width: 500px;
margin: 50px auto;
padding: 20px;
background-color: #fff;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
border-radius: 8px;
}
h1 {
text-align: center;
color: #333;
}
.form-group {
margin-bottom: 15px;
}
label {
display: block;
margin-bottom: 5px;
font-weight: bold;
}
input[type="text"],
input[type="email"],
input[type="password"] {
width: 100%;
padding: 10px;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
button {
width: 100%;
padding: 10px;
background-color: #007bff;
color: #fff;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
}
button:hover {
background-color: #0056b3;
}
/* Styles for hCaptcha widget */
.h-captcha {
margin: 20px 0;
}
/* High contrast and readability for visually impaired users */
body {
background-color: #000;
color: #fff;
}
input[type="text"],
input[type="email"],
input[type="password"] {
background-color: #333;
color: #fff;
border: 1px solid #555;
}
button {
background-color: #ffcc00;
color: #000;
}
button:hover {
background-color: #e6b800;
}