/*
Theme Name: GeneratePress CSQA
Theme URI: .//generatepress-child
Author: Schadd Gray
Author URI: https://damontech.com
Template: generatepress
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: generatepress-child
*/

/* Registration Form Styles */
.registration-form {
    max-width: 500px;
}

.registration-errors {
    margin-bottom: 20px;
    padding: 10px;
    background-color: #ffebe8;
    border: 1px solid #c00;
    border-radius: 3px;
}

.registration-errors .error {
    margin: 5px 0;
    color: #c00;
}

.login-link {
    text-align: center;
    margin-top: 20px;
}

/* Password strength indicator */
.password-strength-meter {
    height: 5px;
    background-color: #eee;
    margin-top: 5px;
    border-radius: 3px;
    overflow: hidden;
}

.password-strength-meter div {
    height: 100%;
    width: 0;
    transition: width 0.3s;
}

.password-strength-weak {
    background-color: #f44336;
    width: 25% !important;
}

.password-strength-medium {
    background-color: #ff9800;
    width: 50% !important;
}

.password-strength-good {
    background-color: #2196f3;
    width: 75% !important;
}

.password-strength-strong {
    background-color: #4caf50;
    width: 100% !important;
}

/* External Login Form - Enhanced Styling */
.custom-login-container {
    max-width: 400px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* Single column layout */
.custom-login-container form {
    display: flex;
    flex-direction: column;
}

/* Dark border for input fields */
.custom-login-container input[type="text"],
.custom-login-container input[type="password"],
.custom-login-container input[type="email"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid #333; /* Dark border */
    border-radius: 3px;
    font-size: 16px;
    box-sizing: border-box;
}

.custom-login-container input[type="text"]:focus,
.custom-login-container input[type="password"]:focus,
.custom-login-container input[type="email"]:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.3);
}

.custom-login-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 16px;
}

.custom-login-container .forgetmenot {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.custom-login-container .forgetmenot input {
    margin-right: 8px;
}

.custom-login-container .button {
    width: 100%;
    padding: 12px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    margin-top: 10px;
}

.custom-login-container .button:hover {
    background-color: #005f8b;
}

.custom-login-container .register-link,
.custom-login-container .login-link {
    text-align: center;
    margin-top: 20px;
}

.login-error {
    color: #d63638;
    background-color: #ffece5;
    padding: 10px;
    border-radius: 3px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid #d63638;
}

.custom-login-container h2 {
    white-space: nowrap;
    text-align: center;
    margin-bottom: 25px;
}

/* Password field container and toggle */
.password-field-container {
    position: relative;
    display: flex;
    width: 100%;
	margin-top: 0px;
}

.password-label-container {
    margin-bottom: 0;
    margin-top: 0px;
}

.password-field-container input[type="password"],
.password-field-container input[type="text"] {
    flex: 1;
    margin-bottom: 0;
    margin-top: 0px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #0073aa;
    padding: 0;
    font-weight: 500;
    z-index: 10;
}

.toggle-password:hover {
    color: #005f8b;
}

.toggle-password:focus {
    outline: none;
}

/* Adjust spacing for the password field to prevent overlap */
.password-field-container input {
    padding-right: 60px;
}

/* reCAPTCHA Container */
.recaptcha-container {
    margin: 15px 0;
}

/* Center the reCAPTCHA widget */
.g-recaptcha {
    display: flex;
    justify-content: center;
}

/* Handle reCAPTCHA error */
.recaptcha-error {
    color: #d63638;
    background-color: #ffece5;
    padding: 10px;
    border-radius: 3px;
    margin: 10px 0;
    text-align: center;
    border: 1px solid #d63638;
}