/**
 * 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-login-form-card {
        max-width: 90%;
        padding: var(--hvac-spacing-lg);
    }
    
    .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-login-form-card {
        padding: var(--hvac-spacing-md);
    }
}