- Add 13 critical CSS files that were missing from repository
- Fixes deployment issues on other machines/environments
- Files include dashboard, templates, certificates, and common styles
- All files force-added to override .gitignore CSS exclusions
🔧 Generated with Claude Code
Co-Authored-By: Ben Reed <ben@tealmaker.com>
335 lines
8.2 KiB
CSS
335 lines
8.2 KiB
CSS
/**
|
|
* HVAC Community Events: Enhanced Community Login Styles
|
|
*
|
|
* Styles for the custom login form page.
|
|
*
|
|
* @version 2.0.0
|
|
*/
|
|
|
|
/* Login Page Container */
|
|
.hvac-community-login-wrapper {
|
|
padding: var(--hvac-spacing-xl) 0;
|
|
min-height: 60vh;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background-color: #f9fafb;
|
|
}
|
|
|
|
/* Login Card */
|
|
.hvac-login-form-card {
|
|
max-width: 450px;
|
|
width: 100%;
|
|
margin: 0 auto;
|
|
padding: var(--hvac-spacing-xl);
|
|
background-color: white;
|
|
border: 1px solid var(--hvac-border);
|
|
box-shadow: var(--hvac-shadow-lg);
|
|
border-radius: var(--hvac-border-radius-lg);
|
|
transition: transform 0.3s, box-shadow 0.3s;
|
|
}
|
|
|
|
.hvac-login-form-card:hover {
|
|
transform: translateY(-5px);
|
|
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
/* Login Card Header */
|
|
.hvac-login-form-header {
|
|
text-align: center;
|
|
margin-bottom: var(--hvac-spacing-lg);
|
|
}
|
|
|
|
.hvac-login-form-header h2 {
|
|
color: var(--hvac-primary);
|
|
font-size: 1.8rem;
|
|
margin-bottom: var(--hvac-spacing-sm);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.hvac-login-form-header p {
|
|
color: var(--hvac-text-light);
|
|
font-size: 1rem;
|
|
}
|
|
|
|
/* Login Form Elements */
|
|
#hvac_community_loginform {
|
|
margin-bottom: var(--hvac-spacing-lg);
|
|
}
|
|
|
|
#hvac_community_loginform p {
|
|
margin-bottom: var(--hvac-spacing-md);
|
|
}
|
|
|
|
#hvac_community_loginform label {
|
|
display: block;
|
|
margin-bottom: var(--hvac-spacing-sm);
|
|
font-weight: 600;
|
|
color: var(--hvac-text);
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
#hvac_community_loginform input[type="text"],
|
|
#hvac_community_loginform input[type="password"] {
|
|
width: 100%;
|
|
padding: 0.85rem;
|
|
border: 1px solid var(--hvac-border);
|
|
border-radius: var(--hvac-border-radius);
|
|
font-size: 1rem;
|
|
transition: border-color 0.2s, box-shadow 0.2s;
|
|
background-color: #f9fafb;
|
|
}
|
|
|
|
#hvac_community_loginform input[type="text"]:focus,
|
|
#hvac_community_loginform input[type="password"]:focus {
|
|
border-color: var(--hvac-primary);
|
|
outline: none;
|
|
box-shadow: 0 0 0 3px var(--hvac-primary-light);
|
|
background-color: white;
|
|
}
|
|
|
|
/* Remember Me Checkbox */
|
|
.login-remember {
|
|
margin-bottom: var(--hvac-spacing-md) !important;
|
|
}
|
|
|
|
#hvac_community_loginform .login-remember label {
|
|
font-weight: normal;
|
|
display: flex;
|
|
align-items: center;
|
|
cursor: pointer;
|
|
color: var(--hvac-text-light);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
#hvac_community_loginform .login-remember input[type="checkbox"] {
|
|
margin-right: var(--hvac-spacing-sm);
|
|
cursor: pointer;
|
|
width: 18px;
|
|
height: 18px;
|
|
}
|
|
|
|
/* Login Button */
|
|
.login-submit {
|
|
margin-bottom: var(--hvac-spacing-md) !important;
|
|
}
|
|
|
|
#hvac_community_loginform .login-submit #wp-submit {
|
|
display: block;
|
|
width: 100%;
|
|
padding: 0.85rem;
|
|
background-color: var(--hvac-primary);
|
|
color: white;
|
|
border: none;
|
|
border-radius: var(--hvac-border-radius);
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
text-align: center;
|
|
transition: background-color 0.2s, transform 0.1s;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
box-shadow: var(--hvac-shadow);
|
|
}
|
|
|
|
#hvac_community_loginform .login-submit #wp-submit:hover {
|
|
background-color: var(--hvac-primary-dark);
|
|
transform: translateY(-1px);
|
|
box-shadow: var(--hvac-shadow-lg);
|
|
}
|
|
|
|
#hvac_community_loginform .login-submit #wp-submit:active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
/* Additional Links */
|
|
.hvac-login-links {
|
|
margin-top: var(--hvac-spacing-lg);
|
|
text-align: center;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding-top: var(--hvac-spacing-md);
|
|
border-top: 1px solid var(--hvac-border-light);
|
|
}
|
|
|
|
.hvac-login-links a {
|
|
color: var(--hvac-primary);
|
|
text-decoration: none;
|
|
font-size: 0.9rem;
|
|
font-weight: 500;
|
|
transition: color 0.2s;
|
|
}
|
|
|
|
.hvac-login-links a:hover {
|
|
color: var(--hvac-primary-dark);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Login Error Message */
|
|
.login-error {
|
|
background-color: #fef2f2;
|
|
color: #dc2626;
|
|
padding: var(--hvac-spacing-md);
|
|
border-radius: var(--hvac-border-radius);
|
|
margin-bottom: var(--hvac-spacing-lg);
|
|
border-left: 4px solid #dc2626;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
/* Login Success Message */
|
|
.login-success {
|
|
background-color: #f0fdf4;
|
|
color: #16a34a;
|
|
padding: var(--hvac-spacing-md);
|
|
border-radius: var(--hvac-border-radius);
|
|
margin-bottom: var(--hvac-spacing-lg);
|
|
border-left: 4px solid #16a34a;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
/* Image/Logo Placeholder if needed */
|
|
.hvac-login-logo {
|
|
text-align: center;
|
|
margin-bottom: var(--hvac-spacing-lg);
|
|
}
|
|
|
|
.hvac-login-logo img {
|
|
max-width: 180px;
|
|
height: auto;
|
|
}
|
|
|
|
/* Responsive Adjustments */
|
|
@media (max-width: 767px) {
|
|
.hvac-community-login-wrapper {
|
|
padding: 40px 20px !important; /* Ensure minimum 20px padding */
|
|
}
|
|
|
|
.hvac-login-form-card {
|
|
max-width: calc(100% - 40px); /* Account for wrapper padding */
|
|
width: 100%;
|
|
padding: var(--hvac-spacing-lg);
|
|
margin: 0 auto;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.hvac-login-links {
|
|
flex-direction: column;
|
|
gap: var(--hvac-spacing-md);
|
|
}
|
|
|
|
.hvac-login-form-header h2 {
|
|
font-size: 1.5rem;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.hvac-community-login-wrapper {
|
|
padding: 30px 15px !important; /* Slightly less on very small screens but still generous */
|
|
}
|
|
|
|
.hvac-login-form-card {
|
|
max-width: calc(100% - 30px); /* Account for wrapper padding */
|
|
padding: var(--hvac-spacing-md);
|
|
}
|
|
|
|
#hvac_community_loginform input[type="text"],
|
|
#hvac_community_loginform input[type="password"] {
|
|
font-size: 16px; /* Prevent zoom on iOS */
|
|
padding: 12px 15px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 375px) {
|
|
.hvac-community-login-wrapper {
|
|
padding: 20px 15px !important; /* Ensure generous spacing on smallest screens */
|
|
}
|
|
|
|
.hvac-login-form-card {
|
|
max-width: calc(100% - 30px);
|
|
padding: 20px 15px;
|
|
}
|
|
}
|
|
|
|
/* Focus Management Styles - WCAG 2.1 Compliance */
|
|
/* Added for keyboard accessibility and screen reader support */
|
|
|
|
/* Button Focus Styles */
|
|
.hvac-button:focus,
|
|
.hvac-content .button:focus,
|
|
.hvac-content button:focus,
|
|
.hvac-content input[type="submit"]:focus,
|
|
.hvac-email-submit:focus,
|
|
.hvac-filter-submit:focus,
|
|
.hvac-certificate-actions button:focus,
|
|
.hvac-certificate-actions a:focus {
|
|
outline: 2px solid #005fcc;
|
|
outline-offset: 2px;
|
|
box-shadow: 0 0 0 3px rgba(0, 95, 204, 0.2);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
/* Input Focus Styles */
|
|
.hvac-form-input:focus,
|
|
.hvac-content input[type="text"]:focus,
|
|
.hvac-content input[type="email"]:focus,
|
|
.hvac-content input[type="password"]:focus,
|
|
.hvac-content input[type="url"]:focus,
|
|
.hvac-content textarea:focus,
|
|
.hvac-content select:focus,
|
|
.hvac-email-form-row input:focus,
|
|
.hvac-email-form-row textarea:focus,
|
|
.hvac-filter-group input:focus,
|
|
.hvac-filter-group select:focus {
|
|
outline: 2px solid #005fcc;
|
|
outline-offset: 2px;
|
|
border-color: #005fcc;
|
|
box-shadow: 0 0 0 3px rgba(0, 95, 204, 0.2);
|
|
}
|
|
|
|
/* Link Focus Styles */
|
|
.hvac-content a:focus,
|
|
.hvac-event-link:focus,
|
|
.hvac-certificate-link:focus,
|
|
.hvac-attendee-profile-icon:focus,
|
|
.hvac-dashboard-nav a:focus,
|
|
.hvac-email-navigation a:focus {
|
|
outline: 2px solid #005fcc;
|
|
outline-offset: 2px;
|
|
text-decoration: underline;
|
|
background-color: rgba(0, 95, 204, 0.1);
|
|
border-radius: 2px;
|
|
}
|
|
|
|
/* Interactive Element Focus Styles */
|
|
.hvac-attendee-checkbox:focus,
|
|
.hvac-select-all-container input[type="checkbox"]:focus,
|
|
.hvac-modal-close:focus,
|
|
.hvac-certificate-table tr:focus {
|
|
outline: 2px solid #005fcc;
|
|
outline-offset: 2px;
|
|
box-shadow: 0 0 0 3px rgba(0, 95, 204, 0.2);
|
|
}
|
|
|
|
/* High Contrast Mode Support */
|
|
@media (prefers-contrast: high) {
|
|
.hvac-content *:focus {
|
|
outline: 3px solid #000000;
|
|
outline-offset: 2px;
|
|
background-color: #ffff00;
|
|
color: #000000;
|
|
}
|
|
}
|
|
|
|
/* Focus-visible polyfill support */
|
|
|
|
/* Reset focus for mouse users while preserving keyboard accessibility */
|
|
.js-focus-visible :focus:not(.focus-visible) {
|
|
outline: none;
|
|
box-shadow: none;
|
|
}
|
|
|
|
/* Ensure focus is visible for keyboard users */
|
|
.js-focus-visible .focus-visible {
|
|
outline: 2px solid #005fcc;
|
|
outline-offset: 2px;
|
|
}
|