/* --- Show/hide eye inside password inputs (frontend/js/password-field.js) --- */
.password-field {
    position: relative;
}

.password-field input {
    padding-right: 44px;
}

/* Edge/IE draw their own reveal eye — one is enough. */
.password-field input::-ms-reveal,
.password-field input::-ms-clear {
    display: none;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: #71717a;
    font-size: 0.95rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #e4e4e7;
}

.password-toggle:focus-visible {
    outline: 2px solid #f43f5e;
    outline-offset: 1px;
}

/* --- Live password checklist (passwordRules.renderChecklist) ---
   Shared by Create Account, Set a New Password and Change Password. */
.password-rules {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
    margin: 8px 0 0;
    padding: 0;
    color: #a1a1aa;
    font-size: 12px;
    line-height: 1.4;
    text-align: left;
}

.password-rules li {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #a1a1aa;
    transition: color 0.2s ease;
}

.password-rules li i {
    font-size: 11px;
    color: inherit;
    transition: color 0.2s ease;
}

.password-rules li.is-met {
    color: #22c55e;
}

@media (max-width: 767px) {
    .password-rules {
        grid-template-columns: 1fr;
    }

    /* 44px eye button */
    .password-field input {
        padding-right: 50px;
    }

    .password-toggle {
        right: 2px;
        width: 44px;
        height: 44px;
    }
}

/* --- "Passwords match" / "Passwords do not match" (passwordRules.renderMatch) --- */
.match-message {
    font-size: 13px;
    margin-top: 6px;
    min-height: 16px;
    text-align: left;
    transition: color 0.2s ease;
}

.match-message.match {
    color: #22c55e;
}

.match-message.no-match {
    color: #f43f5e;
}

.password-field input.input-match {
    border-color: #22c55e;
}

.password-field input.input-no-match {
    border-color: #f43f5e;
}
