/* ================================================
   UNIFIED PASSWORD STRENGTH STYLES
   ================================================ */

/* Password requirements info text styling */
.password-requirements-info {
    font-family: Open Sans;
    font-style: normal;
    font-weight: normal;
    font-size: 11px;
    line-height: 15px;
    color: #8AB5D0;
    display: table-row;
    position: relative;
}

/* Password strength error message styling */
.password-strength-error {
    font-family: Open Sans;
    font-style: normal;
    font-weight: normal;
    font-size: 11px;
    line-height: 15px;
    color: #ff6060;
    display: none;
    margin-top: 5px;
}

/* Hide default WordPress password strength indicators ONLY when our custom indicator is present */
#unified-password-strength-container ~ #pass-strength-result,
#unified-password-strength-container ~ .pw-weak,
#unified-password-strength-container ~ .indicator-hint,
#unified-password-strength-container ~ .pw-strong,
#unified-password-strength-container ~ .pw-good,
#unified-password-strength-container ~ .pw-medium {
    display: none !important;
}

/* Completely hide the weak password checkbox everywhere including reset forms */
.pw-weak,
div.pw-weak,
input#pw-weak,
label[for="pw-weak"],
body.login .pw-weak,
body.login div.pw-weak,
body.login input#pw-weak,
body.login label[for="pw-weak"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Hide password strength indicators ONLY on header LOGIN form */
body:not(.wp-admin) header #unified-password-strength-container,
body:not(.wp-admin) header #login_pas_result,
body:not(.wp-admin) header #login-password-strength-text {
    display: none !important;
}

/* Base password meter styles */
body .password_meter {
  position: relative;
  padding-top: 25px;
}

body .password_meter label {
  font-family: Open Sans;
  font-style: normal;
  font-weight: 600;
  font-size: 14px;
  line-height: 22px;
  color: #FFFFFF;
}

body .password_meter meter {
  margin: 0 auto 1em;
  width: 100%;
  height: 7px;
  border: 1px solid #0072B9;
  background: none;
  background-color: transparent;
}

body .password_meter #password-strength-text {
  color: #fff;
}

/* Webkit and Firefox meter styling */
body .password_meter meter::-webkit-meter-bar {
  background: none;
  background-color: rgba(0, 0, 0, 0.1);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

body .password_meter meter[value="1"]::-webkit-meter-optimum-value {
  background-color: red;
}

body .password_meter meter[value="2"]::-webkit-meter-optimum-value {
  background-color: yellow;
}

body .password_meter meter[value="3"]::-webkit-meter-optimum-value {
  background-color: orange;
}

body .password_meter meter[value="4"]::-webkit-meter-optimum-value {
  background-color: green;
}

body .password_meter meter[value="1"]::-moz-meter-bar {
  background-color: red;
}

body .password_meter meter[value="2"]::-moz-meter-bar {
  background-color: yellow;
}

body .password_meter meter[value="3"]::-moz-meter-bar {
  background-color: orange;
}

body .password_meter meter[value="4"]::-moz-meter-bar {
  background-color: green;
}

/* ================================================
   PROFILE EDIT FORM PASSWORD STRENGTH
   ================================================ */

#profile-password-strength-text {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 22px;
    color: #fff;
}

#profile_pas_result {
    width: 100%;
    height: 7px;
    box-sizing: border-box;
    border: 1px solid #0072B9;
}

#profileColorLine {
    display: block;
    width: 0;
    height: 100%;
}

#profile_pas_result.short #profileColorLine {
    width: 25%;
    background-color: #FF0000;
}

#profile_pas_result.weak #profileColorLine {
    width: 50%;
    background-color: #FFBB54;
}

#profile_pas_result.good #profileColorLine {
    width: 75%;
    background-color: #FFFF00;
}

#profile_pas_result.strong #profileColorLine {
    width: 100%;
    background-color: #4aaa3a;
}

/* ================================================
   ATC APPLICATION FORM PASSWORD STRENGTH
   ================================================ */

#app-password-strength-text {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 22px;
    color: #fff;
}

#password-strength-meter {
    width: 100%;
    height: 7px;
    box-sizing: border-box;
    border: 1px solid #0072B9;
}

#appColorLine {
    display: block;
    width: 0;
    height: 100%;
}

#app_pas_result {
    width: 100%;
    height: 7px;
    box-sizing: border-box;
    border: 1px solid #0072B9;
}

#app_pas_result.short #appColorLine {
    width: 25%;
    background-color: #FF0000;
}

#app_pas_result.weak #appColorLine {
    width: 50%;
    background-color: #FFBB54;
}

#app_pas_result.good #appColorLine {
    width: 75%;
    background-color: #FFFF00;
}

#app_pas_result.strong #appColorLine {
    width: 100%;
    background-color: #4aaa3a;
}

/* ================================================
   ENG APPLICATION FORM PASSWORD STRENGTH
   ================================================ */

#eng-password-strength-text {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 22px;
    color: #fff;
}

#engColorLine {
    display: block;
    width: 0;
    height: 100%;
}

#eng_pas_result {
    width: 100%;
    height: 7px;
    box-sizing: border-box;
    border: 1px solid #0072B9;
}

#eng_pas_result.short #engColorLine {
    width: 25%;
    background-color: #FF0000;
}

#eng_pas_result.weak #engColorLine {
    width: 50%;
    background-color: #FFBB54;
}

#eng_pas_result.good #engColorLine {
    width: 75%;
    background-color: #FFFF00;
}

#eng_pas_result.strong #engColorLine {
    width: 100%;
    background-color: #4aaa3a;
}

/* ================================================
   LOGIN/RESET PASSWORD FORM STRENGTH
   ================================================ */

#login-password-strength-text {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 22px;
    color: #fff !important;
    margin-bottom: 5px;
}

#login_pas_result {
    width: 100%;
    height: 7px;
    box-sizing: border-box;
    border: 1px solid #0072B9;
    margin-bottom: 10px;
}

#loginColorLine {
    display: block;
    width: 0;
    height: 100%;
}

#login_pas_result.short #loginColorLine {
    width: 25%;
    background-color: #FF0000;
}

#login_pas_result.weak #loginColorLine {
    width: 50%;
    background-color: #FFBB54;
}

#login_pas_result.good #loginColorLine {
    width: 75%;
    background-color: #FFFF00;
}

#login_pas_result.strong #loginColorLine {
    width: 100%;
    background-color: #4aaa3a;
}

#login-password-strength-text-indicator {
    display: inline;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 22px;
    color: #8AB5D0 !important;
    margin-left: 5px;
}

/* ================================================
   REGISTRATION FORM PASSWORD STRENGTH
   ================================================ */

#reg-password-strength-text {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 22px;
    color: #fff;
}

#reg_pas_result {
    width: 100%;
    height: 7px;
    box-sizing: border-box;
    border: 1px solid #0072B9;
    margin-top: 5px;
}

#regColorLine {
    display: block;
    width: 0;
    height: 100%;
}

#reg_pas_result.short #regColorLine {
    width: 25%;
    background-color: #FF0000;
}

#reg_pas_result.weak #regColorLine {
    width: 50%;
    background-color: #FFBB54;
}

#reg_pas_result.good #regColorLine {
    width: 75%;
    background-color: #FFFF00;
}

#reg_pas_result.strong #regColorLine {
    width: 100%;
    background-color: #4aaa3a;
}

/* ================================================
   UNIFIED TEXT INDICATORS FOR ALL FORMS
   ================================================ */

/* Text indicators for password strength - all forms */
#reg-password-strength-text-indicator,
#profile-password-strength-text-indicator,
#app-password-strength-text-indicator,
#eng-password-strength-text-indicator {
    display: inline;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 22px;
    color: #8AB5D0;
    margin-left: 5px;
}

/* Main password strength text labels */
#reg-password-strength-text,
#profile-password-strength-text,
#app-password-strength-text,
#eng-password-strength-text {
    color: #fff;
}

/* Password strength text in p element for applications */
#password-strength-text {
    color: #fff;
}

/* ================================================
   WORDPRESS LOGIN OVERRIDES & CUSTOM STYLES
   ================================================ */

/* Hide default WordPress password strength indicators only when our unified container is present */
body:has(#unified-password-strength-container) .pw-weak, 
body:has(#unified-password-strength-container) #pass-strength-result,
body:has(#unified-password-strength-container) .pw-strong,
body:has(#unified-password-strength-container) .pw-good,
body:has(#unified-password-strength-container) .pw-medium {
    display: none !important;
}

/* Hide the info text only when our unified container is present */
body:has(#unified-password-strength-container) .indicator-hint {
    display: none !important;
}

#unified-password-strength-container {
    margin-top: 10px !important;
}

/* Password strength error message*/
#password-strength-error {
    color: #dc3232 !important;
    font-size: 14px !important;
    margin-top: 5px !important;
    padding: 5px !important;
    border: 1px solid #dc3232 !important;
    background: #fff !important;
    z-index: 9999 !important;
    position: relative !important;
}

/* ================================================
   UTILITY CLASSES FOR DYNAMIC CONTENT
   ================================================ */

.password-strength-label {
    color: #fff !important;
}

.password-strength-indicator {
    color: #8AB5D0 !important;
}

/* ================================================
   RESET PASSWORD FORMS - LOGIN PAGE STYLES
   ================================================ */

/* Container for reset password strength indicator */
#unified-password-strength-container {
    margin-top: 10px;
    margin-bottom: 15px;
}

/* Reset password strength text */
#login-password-strength-text {
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 22px;
    margin-bottom: 5px;
}

/* Reset password strength text indicator */
#login-password-strength-text-indicator {
    display: inline;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 22px;
    color: #8AB5D0 !important;
    margin-left: 5px;
}

/* Reset password colored bar container - override existing styles */
#unified-password-strength-container #login_pas_result {
    height: 7px;
    width: 100%;
    border: 1px solid #0072B9;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    overflow: hidden;
    box-sizing: border-box;
    margin-bottom: 0;
}

/* Reset password colored bar */
#unified-password-strength-container #loginColorLine {
    display: block;
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
}

/* Reset password strength colors - with container selector for specificity */
#unified-password-strength-container #login_pas_result.short #loginColorLine {
    width: 25%;
    background-color: #ff0000;
}

#unified-password-strength-container #login_pas_result.weak #loginColorLine {
    width: 50%;
    background-color: #ffaa00;
}

#unified-password-strength-container #login_pas_result.good #loginColorLine {
    width: 75%;
    background-color: #ffff00;
}

#unified-password-strength-container #login_pas_result.strong #loginColorLine {
    width: 100%;
    background-color: #00ff00;
}

/* ================================================
   RESET PASSWORD SUBMIT BUTTON STYLING
   ================================================ */

/* Reset password submit button - green with pointer cursor */
form[name="resetpassform"] input[type="submit"],
form[name="resetpassform"] .button-primary,
#resetpassform input[type="submit"],
#resetpassform .button-primary {
    background: #4aaa3a !important;
    border-color: #4aaa3a !important;
    color: white !important;
    cursor: pointer !important;
    padding: 12px 30px !important;
    font-size: 16px !important;
    border-radius: 8px !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    width: 100% !important;
    border: none !important;
    margin-bottom: 10px !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

/* ================================================
   RESET PASSWORD FIELD STYLING - UNIFIED WITH OTHER FORMS
   ================================================ */

/* Reset password field styling - consistent with other forms */
body.login #pass1,
body.login #pass1-text {
    background: #051E43 !important;
    border: 1px solid #0072B9 !important;
    box-sizing: border-box !important;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1) !important;
    border-radius: 3px !important;
    color: #ffffff !important;
}

/* Disable all dynamic border coloring - keep consistent border */
body.login #pass1.short,
body.login #pass1.bad,
body.login #pass1.good, 
body.login #pass1.strong,
body.login #pass1-text.short,
body.login #pass1-text.bad,
body.login #pass1-text.good,
body.login #pass1-text.strong {
    border: 1px solid #0072B9 !important;
    background: #051E43 !important;
    color: #ffffff !important;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1) !important;
}

/* Focus state - enhanced border and shadow like other forms */
body.login #pass1:focus,
body.login #pass1-text:focus {
    border-color: #0284c7 !important;
    box-shadow: 0 0 10px rgba(30, 58, 138, 0.3) !important;
    outline: none !important;
    background: #051E43 !important;
    color: #ffffff !important;
}

/* ================================================
   HIDDEN INDICATORS FOR INVALID LENGTH PASSWORDS
   ================================================ */

/* Hide color indicators when password is outside valid range (no classes) */
#reg_pas_result:not(.short):not(.weak):not(.good):not(.strong) #regColorLine,
#profile_pas_result:not(.short):not(.weak):not(.good):not(.strong) #profileColorLine,
#app_pas_result:not(.short):not(.weak):not(.good):not(.strong) #appColorLine,
#eng_pas_result:not(.short):not(.weak):not(.good):not(.strong) #engColorLine,
#login_pas_result:not(.short):not(.weak):not(.good):not(.strong) #loginColorLine {
    width: 0 !important;
    background-color: transparent !important;
}

/* Hide meter for invalid length passwords */
body .password_meter meter[value="-1"] {
    opacity: 0 !important;
}

body .password_meter meter[value="-1"]::-webkit-meter-bar {
    background-color: transparent !important;
}

body .password_meter meter[value="-1"]::-webkit-meter-optimum-value {
    background-color: transparent !important;
}

body .password_meter meter[value="-1"]::-moz-meter-bar {
    background-color: transparent !important;
}

/* ================================================
   ERROR MESSAGE STYLING
   ================================================ */

/* Error message styling */
#password-strength-error {
    color: #ff0000;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    margin-top: 5px;
    padding: 5px;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff0000;
    border-radius: 3px;
} 