mirror of
https://github.com/thecyberlearn/modern-django-starter.git
synced 2026-08-18 19:32:55 +00:00
- Add modern authentication templates with black/white theme - Implement email/password and Google OAuth login/signup - Configure SMTP email delivery for verification emails - Create clean, rectangular authentication cards - Remove Facebook integration, keep Google only - Add responsive auth design with reduced font sizes - Fix Django settings for production-ready email backend - Update Google OAuth credentials and callback URLs - Generate secure SECRET_KEY for production 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
316 lines
5.2 KiB
CSS
316 lines
5.2 KiB
CSS
/* Modern Authentication Styles */
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body.auth-body {
|
|
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
background: #f8f9fa;
|
|
min-height: 100vh;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.auth-container {
|
|
width: 100%;
|
|
max-width: 600px;
|
|
padding: 20px;
|
|
}
|
|
|
|
.auth-card {
|
|
background: #ffffff;
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
|
|
padding: 32px 48px;
|
|
width: 100%;
|
|
border: 1px solid #e5e7eb;
|
|
}
|
|
|
|
.auth-logo {
|
|
width: 64px;
|
|
height: 64px;
|
|
background: #000000;
|
|
border-radius: 8px;
|
|
margin: 0 auto 24px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 24px;
|
|
font-weight: 600;
|
|
color: white;
|
|
}
|
|
|
|
.auth-title {
|
|
font-size: 22px;
|
|
font-weight: 600;
|
|
color: #000000;
|
|
text-align: center;
|
|
margin-bottom: 6px;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.auth-subtitle {
|
|
font-size: 14px;
|
|
color: #6b7280;
|
|
text-align: center;
|
|
margin-bottom: 24px;
|
|
font-weight: 400;
|
|
}
|
|
|
|
.auth-form {
|
|
width: 100%;
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.form-label {
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
color: #374151;
|
|
margin-bottom: 8px;
|
|
display: block;
|
|
}
|
|
|
|
.form-control {
|
|
width: 100%;
|
|
padding: 10px 12px;
|
|
font-size: 14px;
|
|
border: 1.5px solid #d1d5db;
|
|
border-radius: 6px;
|
|
background: #ffffff;
|
|
transition: all 0.2s ease;
|
|
font-family: inherit;
|
|
}
|
|
|
|
.form-control:focus {
|
|
outline: none;
|
|
border-color: #000000;
|
|
box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
|
|
background: #ffffff;
|
|
}
|
|
|
|
.form-control::placeholder {
|
|
color: #a0aec0;
|
|
font-weight: 400;
|
|
}
|
|
|
|
.btn-primary {
|
|
width: 100%;
|
|
padding: 10px 16px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
background: #000000;
|
|
border: none;
|
|
border-radius: 6px;
|
|
color: white;
|
|
transition: all 0.2s ease;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
|
|
background: #1f2937;
|
|
}
|
|
|
|
.btn-primary:active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.divider {
|
|
display: flex;
|
|
align-items: center;
|
|
margin: 20px 0;
|
|
color: #a0aec0;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.divider::before,
|
|
.divider::after {
|
|
content: '';
|
|
flex: 1;
|
|
height: 1px;
|
|
background: #d1d5db;
|
|
}
|
|
|
|
.divider::before {
|
|
margin-right: 16px;
|
|
}
|
|
|
|
.divider::after {
|
|
margin-left: 16px;
|
|
}
|
|
|
|
.btn-google {
|
|
width: 100%;
|
|
padding: 10px 16px;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
background: #ffffff;
|
|
border: 1.5px solid #d1d5db;
|
|
border-radius: 6px;
|
|
color: #374151;
|
|
transition: all 0.2s ease;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 10px;
|
|
margin-bottom: 12px;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.btn-google:hover {
|
|
border-color: #9ca3af;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
background: #f9fafb;
|
|
color: #374151;
|
|
text-decoration: none;
|
|
}
|
|
|
|
|
|
.auth-links {
|
|
text-align: right;
|
|
margin: 0;
|
|
}
|
|
|
|
.auth-links a {
|
|
color: #000000;
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.auth-links a:hover {
|
|
color: #374151;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.auth-links .separator {
|
|
color: #a0aec0;
|
|
margin: 0 8px;
|
|
}
|
|
|
|
.auth-footer {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-top: 16px;
|
|
font-size: 12px;
|
|
width: 100%;
|
|
}
|
|
|
|
.forgot-password {
|
|
margin: 0;
|
|
text-align: left;
|
|
}
|
|
|
|
.forgot-password a {
|
|
color: #6b7280;
|
|
text-decoration: none;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.forgot-password a:hover {
|
|
color: #000000;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.error-message {
|
|
background: #fee;
|
|
border: 1px solid #fcc;
|
|
color: #c66;
|
|
padding: 12px 16px;
|
|
border-radius: 8px;
|
|
margin-bottom: 20px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.success-message {
|
|
background: #efe;
|
|
border: 1px solid #cfc;
|
|
color: #6c6;
|
|
padding: 12px 16px;
|
|
border-radius: 8px;
|
|
margin-bottom: 20px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* Responsive design */
|
|
@media (max-width: 480px) {
|
|
.auth-card {
|
|
padding: 32px 24px;
|
|
margin: 20px;
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.auth-title {
|
|
font-size: 24px;
|
|
}
|
|
|
|
.auth-subtitle {
|
|
font-size: 14px;
|
|
}
|
|
}
|
|
|
|
/* Django form error styling */
|
|
.errorlist {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 8px 0 0 0;
|
|
}
|
|
|
|
.errorlist li {
|
|
color: #e53e3e;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.form-control.is-invalid {
|
|
border-color: #e53e3e;
|
|
}
|
|
|
|
/* Hide default Django form styling */
|
|
.form-row {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
label {
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
color: #374151;
|
|
margin-bottom: 8px;
|
|
display: block;
|
|
}
|
|
|
|
/* Social login not configured message */
|
|
.social-not-configured {
|
|
text-align: center;
|
|
color: #a0aec0;
|
|
font-size: 14px;
|
|
margin-top: 16px;
|
|
font-style: italic;
|
|
}
|
|
|
|
/* Toast customization */
|
|
.toast {
|
|
border: none;
|
|
border-radius: 12px;
|
|
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.toast-header {
|
|
border-bottom: 1px solid #e2e8f0;
|
|
border-radius: 12px 12px 0 0;
|
|
}
|
|
|
|
.toast-body {
|
|
font-weight: 500;
|
|
} |