/* ============================================
 * AuthMe — New Password Form Styles
 * ============================================
 *
 * Scoped to #authme-new-password-screen to
 * prevent style conflicts across the plugin.
 *
 * @package AuthMe
 * ============================================ */

/* ── Input Groups ────────────────────────── */
#authme-new-password-screen .authme-input-group {
    margin-bottom: 20px;
}

#authme-new-password-screen .authme-input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--authme-text-main);
}

#authme-new-password-screen .authme-input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--authme-border);
    border-radius: var(--authme-radius-md);
    font-size: 15px;
    color: var(--authme-text-main);
    background-color: var(--authme-input-bg);
    font-family: var(--authme-font);
    transition: all 0.2s ease;
}

#authme-new-password-screen .authme-input:focus {
    outline: none;
    border-color: var(--authme-primary);
    box-shadow: 0 0 0 4px var(--authme-primary-ring);
}

#authme-new-password-screen .authme-input::placeholder {
    color: var(--authme-text-placeholder);
}

/* Input states */
#authme-new-password-screen .authme-input.authme-input-success {
    border-color: var(--authme-success);
}

#authme-new-password-screen .authme-input.authme-input-success:focus {
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}

#authme-new-password-screen .authme-input.authme-input-error {
    border-color: var(--authme-error);
}

#authme-new-password-screen .authme-input.authme-input-error:focus {
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

/* ── Password Wrapper ────────────────────── */
#authme-new-password-screen .authme-password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

#authme-new-password-screen .authme-password-wrapper .authme-input {
    padding-right: 44px;
}

#authme-new-password-screen .authme-toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--authme-text-muted);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

#authme-new-password-screen .authme-toggle-password:hover {
    color: var(--authme-primary);
}

/* ── Password Strength Bar ───────────────── */
#authme-new-password-strength {
    margin-top: 8px;
    display: flex;
    gap: 4px;
    height: 4px;
}

#authme-new-password-strength .authme-strength-bar {
    flex: 1;
    height: 4px;
    border-radius: 99px;
    background-color: var(--authme-border);
    transition: background-color 0.3s ease;
}

#authme-new-password-strength.strength-weak   .authme-strength-bar:nth-child(1)                   { background-color: var(--authme-error); }
#authme-new-password-strength.strength-fair   .authme-strength-bar:nth-child(-n+2)                { background-color: #f59e0b; }
#authme-new-password-strength.strength-good   .authme-strength-bar:nth-child(-n+3)                { background-color: #3b82f6; }
#authme-new-password-strength.strength-strong .authme-strength-bar                                { background-color: var(--authme-success); }

/* ── Field Messages ──────────────────────── */
#authme-new-password-screen .authme-field-msg {
    display: none;
    font-size: 12px;
    margin-top: 6px;
    line-height: 1.3;
}

#authme-new-password-screen .authme-field-msg.authme-msg-success {
    display: block;
    color: var(--authme-success);
}

#authme-new-password-screen .authme-field-msg.authme-msg-error {
    display: block;
    color: var(--authme-error);
}

/* ── Button ──────────────────────────────── */
#authme-new-password-screen .authme-btn-primary {
    width: 100%;
    padding: 14px;
    background-color: var(--authme-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--authme-radius-md);
    font-size: 15px;
    font-weight: 600;
    font-family: var(--authme-font);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

#authme-new-password-screen .authme-btn-primary:hover:not(:disabled) {
    background-color: var(--authme-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

#authme-new-password-screen .authme-btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: none;
}

#authme-new-password-screen .authme-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
